pub struct Adm { /* private fields */ }Expand description
Entry point for zoneadm commands.
Implementations§
Source§impl Adm
impl Adm
pub fn boot_command(&mut self) -> Command
pub fn parse_boot_output(output: &Output) -> Result<String, ZoneError>
Sourcepub fn boot_blocking(&mut self) -> Result<String, ZoneError>
pub fn boot_blocking(&mut self) -> Result<String, ZoneError>
Boots (or activates) the zone.
pub fn clone_command(&mut self, source: impl AsRef<OsStr>) -> Command
pub fn parse_clone_output(output: &Output) -> Result<String, ZoneError>
Sourcepub fn clone_blocking(
&mut self,
source: impl AsRef<OsStr>,
) -> Result<String, ZoneError>
pub fn clone_blocking( &mut self, source: impl AsRef<OsStr>, ) -> Result<String, ZoneError>
Installs a zone by copying an existing installed zone.
pub fn halt_command(&mut self) -> Command
pub fn parse_halt_output(output: &Output) -> Result<String, ZoneError>
Sourcepub fn halt_blocking(&mut self) -> Result<String, ZoneError>
pub fn halt_blocking(&mut self) -> Result<String, ZoneError>
Halts the specified zone.
pub fn mount_command(&mut self) -> Command
pub fn parse_mount_output(output: &Output) -> Result<String, ZoneError>
pub fn mount_blocking(&mut self) -> Result<String, ZoneError>
pub fn unmount_command(&mut self) -> Command
pub fn parse_unmount_output(output: &Output) -> Result<String, ZoneError>
pub fn unmount_blocking(&mut self) -> Result<String, ZoneError>
pub fn install_command(&mut self, brand_specific_options: &[&OsStr]) -> Command
pub fn parse_install_output(output: &Output) -> Result<String, ZoneError>
Sourcepub fn install_blocking(
&mut self,
brand_specific_options: &[&OsStr],
) -> Result<String, ZoneError>
pub fn install_blocking( &mut self, brand_specific_options: &[&OsStr], ) -> Result<String, ZoneError>
Install the specified zone on the system.
pub fn uninstall_command(&mut self, force: bool) -> Command
pub fn parse_uninstall_output(output: &Output) -> Result<String, ZoneError>
Sourcepub fn uninstall_blocking(&mut self, force: bool) -> Result<String, ZoneError>
pub fn uninstall_blocking(&mut self, force: bool) -> Result<String, ZoneError>
Uninstalls the zone from the system.
pub fn list_command() -> Command
pub fn parse_list_output(output: &Output) -> Result<Vec<Zone>, ZoneError>
Auto Trait Implementations§
impl Freeze for Adm
impl RefUnwindSafe for Adm
impl Send for Adm
impl Sync for Adm
impl Unpin for Adm
impl UnwindSafe for Adm
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more