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 | |
parent | 5b9b4502f3c020423f257a68c1badb077aee4133 (diff) | |
download | solarlib-1.4.0.tar.gz solarlib-1.4.0.zip |
planet: Make status functions public1.4.0
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/planet.rs | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ [package] name = "solarlib" -version = "1.3.1" +version = "1.4.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 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 => { |