Struct emu_cli::storage::SystemdStorage
source · pub struct SystemdStorage { /* private fields */ }Implementations§
source§impl SystemdStorage
impl SystemdStorage
pub fn new(path: PathBuf) -> Self
pub fn init(&self) -> Result<()>
pub fn service_name(&self, vm_name: &str) -> Result<String>
pub fn service_filename(&self, vm_name: &str) -> Result<String>
pub fn supervised(&self, vm_name: &str) -> Result<()>
pub fn remove(&self, vm_name: &str) -> Result<()>
pub fn list(&self) -> Result<Vec<String>>
Trait Implementations§
source§impl Clone for SystemdStorage
impl Clone for SystemdStorage
source§fn clone(&self) -> SystemdStorage
fn clone(&self) -> SystemdStorage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SystemdStorage
impl Debug for SystemdStorage
Auto Trait Implementations§
impl RefUnwindSafe for SystemdStorage
impl Send for SystemdStorage
impl Sync for SystemdStorage
impl Unpin for SystemdStorage
impl UnwindSafe for SystemdStorage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more