From 137ec4c34aa962b11148cfad443a4c88035e3d87 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 9 Jun 2022 09:55:35 -0400 Subject: planet: Make status functions public --- src/planet.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/planet.rs') 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 for Health { } } impl Planet { - fn get_status(&self) -> Result { + pub fn get_status(&self) -> Result { 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 => { -- cgit v1.2.3