[−][src]Struct libzetta::zpool::properties::ZpoolPropertiesWrite
Available properties for write at run time. This doesn't include properties
that are writable
only during creation/import of zpool. See zpool(8)
for more information.
use libzetta::zpool::{CacheType, ZpoolPropertiesWriteBuilder}; let props = ZpoolPropertiesWriteBuilder::default().build().unwrap(); assert!(!props.auto_expand()); assert!(props.boot_fs().is_none()); assert_eq!(props.cache_file(), &CacheType::Default); let props = ZpoolPropertiesWriteBuilder::default().build(); assert!(props.is_ok());
Methods
impl ZpoolPropertiesWrite
[src]
pub fn read_only(&self) -> &bool
[src]
Make zpool readonly. This can only be changed during import.
pub fn auto_expand(&self) -> &bool
[src]
Controls automatic pool expansion when the underlying LUN is grown.
pub fn auto_replace(&self) -> &bool
[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(&self) -> &Option<String>
[src]
Identifies the default bootable dataset for the root pool.
pub fn cache_file(&self) -> &CacheType
[src]
Controls the location of where the pool configuration is cached.
pub fn comment(&self) -> &String
[src]
An administrator can provide additional information about a pool using this property.
pub fn delegation(&self) -> &bool
[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(&self) -> &FailMode
[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.
impl ZpoolPropertiesWrite
[src]
pub fn builder() -> ZpoolPropertiesWriteBuilder
[src]
A preferred way to create this structure.
Trait Implementations
impl Clone for ZpoolPropertiesWrite
[src]
fn clone(&self) -> ZpoolPropertiesWrite
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZpoolPropertiesWrite
[src]
impl Eq for ZpoolPropertiesWrite
[src]
impl PartialEq<ZpoolPropertiesWrite> for ZpoolPropertiesWrite
[src]
fn eq(&self, other: &ZpoolPropertiesWrite) -> bool
[src]
fn ne(&self, other: &ZpoolPropertiesWrite) -> bool
[src]
impl StructuralEq for ZpoolPropertiesWrite
[src]
impl StructuralPartialEq for ZpoolPropertiesWrite
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZpoolPropertiesWrite
impl Send for ZpoolPropertiesWrite
impl Sync for ZpoolPropertiesWrite
impl Unpin for ZpoolPropertiesWrite
impl UnwindSafe for ZpoolPropertiesWrite
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>,