[−][src]Struct libzetta::zpool::properties::ZpoolPropertiesWriteBuilder
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]
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]
fn clone(&self) -> ZpoolPropertiesWriteBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ZpoolPropertiesWriteBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZpoolPropertiesWriteBuilder
impl Send for ZpoolPropertiesWriteBuilder
impl Sync for ZpoolPropertiesWriteBuilder
impl Unpin for ZpoolPropertiesWriteBuilder
impl UnwindSafe for ZpoolPropertiesWriteBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,