pub struct ZpoolPropertiesWriteBuilder { /* private fields */ }
Expand description

Builder for ZpoolPropertiesWrite.

Implementations§

source§

impl ZpoolPropertiesWriteBuilder

source

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

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

source

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

Controls automatic pool expansion when the underlying LUN is grown.

source

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

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”.

source

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

Identifies the default bootable dataset for the root pool.

source

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

Controls the location of where the pool configuration is cached.

source

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

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

source

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

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.

source

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

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.

source

pub fn build( &self ) -> Result<ZpoolPropertiesWrite, ZpoolPropertiesWriteBuilderError>

Builds a new ZpoolPropertiesWrite.

Errors

If a required field has not been initialized.

source§

impl ZpoolPropertiesWriteBuilder

source

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

Construct new builder given existing properties. Useful for updates.

Trait Implementations§

source§

impl Clone for ZpoolPropertiesWriteBuilder

source§

fn clone(&self) -> ZpoolPropertiesWriteBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for ZpoolPropertiesWriteBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
source§

impl<T> SendSyncUnwindSafe for Twhere T: Send + Sync + UnwindSafe + ?Sized,