diff options
Diffstat (limited to 'src/planet.rs')
-rw-r--r-- | src/planet.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/planet.rs b/src/planet.rs index be81e7e..8775f15 100644 --- a/src/planet.rs +++ b/src/planet.rs @@ -296,6 +296,20 @@ impl Planet { Ok(()) } + + pub fn deathstar(&self) -> Result<(), Error> { + let d = match &self.domain { + Some(d) => d, + None => { + return Err(Error::Other(String::from("No domain connection found"))); + } + }; + + self.shutdown()?; + d.undefine()?; + + Ok(()) + } } #[cfg(test)] |