Struct zone::Adm

source ·
pub struct Adm { /* private fields */ }
Expand description

Entry point for zoneadm commands.

Implementations§

source§

impl Adm

source

pub fn new(name: impl AsRef<str>) -> Self

Instantiate a new zone administration command.

source

pub fn boot_command(&mut self) -> Command

source

pub fn parse_boot_output(output: &Output) -> Result<String, ZoneError>

source

pub fn boot_blocking(&mut self) -> Result<String, ZoneError>

Boots (or activates) the zone.

source

pub fn clone_command(&mut self, source: impl AsRef<OsStr>) -> Command

source

pub fn parse_clone_output(output: &Output) -> Result<String, ZoneError>

source

pub fn clone_blocking( &mut self, source: impl AsRef<OsStr> ) -> Result<String, ZoneError>

Installs a zone by copying an existing installed zone.

source

pub fn halt_command(&mut self) -> Command

source

pub fn parse_halt_output(output: &Output) -> Result<String, ZoneError>

source

pub fn halt_blocking(&mut self) -> Result<String, ZoneError>

Halts the specified zone.

source

pub fn mount_command(&mut self) -> Command

source

pub fn parse_mount_output(output: &Output) -> Result<String, ZoneError>

source

pub fn mount_blocking(&mut self) -> Result<String, ZoneError>

source

pub fn unmount_command(&mut self) -> Command

source

pub fn parse_unmount_output(output: &Output) -> Result<String, ZoneError>

source

pub fn unmount_blocking(&mut self) -> Result<String, ZoneError>

source

pub fn install_command(&mut self, brand_specific_options: &[&OsStr]) -> Command

source

pub fn parse_install_output(output: &Output) -> Result<String, ZoneError>

source

pub fn install_blocking( &mut self, brand_specific_options: &[&OsStr] ) -> Result<String, ZoneError>

Install the specified zone on the system.

source

pub fn uninstall_command(&mut self, force: bool) -> Command

source

pub fn parse_uninstall_output(output: &Output) -> Result<String, ZoneError>

source

pub fn uninstall_blocking(&mut self, force: bool) -> Result<String, ZoneError>

Uninstalls the zone from the system.

source

pub fn list_command() -> Command

source

pub fn parse_list_output(output: &Output) -> Result<Vec<Zone>, ZoneError>

source

pub fn list_blocking() -> Result<Vec<Zone>, ZoneError>

List all zones.

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.