diff options
author | Cara Salter <cara@devcara.com> | 2022-06-09 09:55:35 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-09 09:55:35 -0400 |
commit | 137ec4c34aa962b11148cfad443a4c88035e3d87 (patch) | |
tree | ad461a8ff44cbac844ac61ede6078631798e04cc /src/planet.rs | |
parent | 5b9b4502f3c020423f257a68c1badb077aee4133 (diff) | |
download | solarlib-137ec4c34aa962b11148cfad443a4c88035e3d87.tar.gz solarlib-137ec4c34aa962b11148cfad443a4c88035e3d87.zip |
planet: Make status functions public1.4.0
Diffstat (limited to 'src/planet.rs')
-rw-r--r-- | src/planet.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/planet.rs b/src/planet.rs index 60e9b3b..b2aa221 100644 --- a/src/planet.rs +++ b/src/planet.rs @@ -188,7 +188,7 @@ impl TryFrom<u32> for Health { } } impl Planet { - fn get_status(&self) -> Result<Health, Error> { + pub fn get_status(&self) -> Result<Health, Error> { let d = match &self.domain { Some(d) => d, None => { @@ -201,7 +201,7 @@ impl Planet { Ok(state.0.try_into()?) } - fn shutdown(&self) -> Result<(), Error> { + pub fn shutdown(&self) -> Result<(), Error> { let d = match &self.domain { Some(d) => d, None => { @@ -214,7 +214,7 @@ impl Planet { Ok(()) } - fn start(&self) -> Result<(), Error> { + pub fn start(&self) -> Result<(), Error> { let d = match &self.domain { Some(d) => d, None => { @@ -227,7 +227,7 @@ impl Planet { Ok(()) } - fn pause(&self) -> Result<(), Error> { + pub fn pause(&self) -> Result<(), Error> { let d = match &self.domain { Some(d) => d, None => { |