aboutsummaryrefslogtreecommitdiff
path: root/src/planet.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-09 09:55:35 -0400
committerCara Salter <cara@devcara.com>2022-06-09 09:55:35 -0400
commit137ec4c34aa962b11148cfad443a4c88035e3d87 (patch)
treead461a8ff44cbac844ac61ede6078631798e04cc /src/planet.rs
parent5b9b4502f3c020423f257a68c1badb077aee4133 (diff)
downloadsolarlib-137ec4c34aa962b11148cfad443a4c88035e3d87.tar.gz
solarlib-137ec4c34aa962b11148cfad443a4c88035e3d87.zip
planet: Make status functions public1.4.0
Diffstat (limited to 'src/planet.rs')
-rw-r--r--src/planet.rs8
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 => {