[][src]Struct libzetta::zpool::properties::ZpoolPropertiesWriteBuilder

pub struct ZpoolPropertiesWriteBuilder { /* fields omitted */ }

Builder for ZpoolPropertiesWrite.

Methods

impl ZpoolPropertiesWriteBuilder[src]

pub fn read_only(&mut self, value: bool) -> &mut Self[src]

Make zpool readonly. This can only be changed during import.

pub fn auto_expand(&mut self, value: bool) -> &mut Self[src]

Controls automatic pool expansion when the underlying LUN is grown.

pub fn auto_replace(&mut self, value: bool) -> &mut Self[src]

Controls automatic device replacement. If set to "on", any new device, found in the same physical location as a device that previously belonged to the pool, is automatically formatted and replaced. The default behavior is "off".

pub fn boot_fs(&mut self, value: Option<String>) -> &mut Self[src]

Identifies the default bootable dataset for the root pool.

pub fn cache_file(&mut self, value: CacheType) -> &mut Self[src]

Controls the location of where the pool configuration is cached.

pub fn comment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

An administrator can provide additional information about a pool using this property.

pub fn delegation(&mut self, value: bool) -> &mut Self[src]

Controls whether a non-privileged user is granted access based on the dataset permissions defined on the dataset. See zfs(8) for more information on ZFS delegated administration.

pub fn fail_mode(&mut self, value: FailMode) -> &mut Self[src]

Controls the system behavior in the event of catastrophic pool failure. This condition is typically a result of a loss of connectivity to the underlying storage device(s) or a failure of all devices within the pool.

pub fn build(&self) -> Result<ZpoolPropertiesWrite, String>[src]

Builds a new ZpoolPropertiesWrite.

Errors

If a required field has not been initialized.

impl ZpoolPropertiesWriteBuilder[src]

pub fn from_props(props: &ZpoolProperties) -> ZpoolPropertiesWriteBuilder[src]

Construct new builder given existing properties. Useful for updates.

Trait Implementations

impl Clone for ZpoolPropertiesWriteBuilder[src]

impl Default for ZpoolPropertiesWriteBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.