aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/planet.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 2fd5fb6..bcf01b2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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 => {