pub struct ZfsDatasetRequest { /* private fields */ }Expand description
Request for a ZFS dataset listing.
Implementations§
Source§impl ZfsDatasetRequest
impl ZfsDatasetRequest
Sourcepub fn with_pool(self, pool: impl Into<String>) -> InfraResult<Self>
pub fn with_pool(self, pool: impl Into<String>) -> InfraResult<Self>
Restricts the listing to one pool or dataset root.
Sourcepub const fn with_type(self, dataset_type: ZfsDatasetType) -> Self
pub const fn with_type(self, dataset_type: ZfsDatasetType) -> Self
Selects a dataset type.
Sourcepub const fn dataset_type(&self) -> Option<ZfsDatasetType>
pub const fn dataset_type(&self) -> Option<ZfsDatasetType>
Returns the optional dataset type.
Sourcepub const fn is_recursive(&self) -> bool
pub const fn is_recursive(&self) -> bool
Returns whether recursive listing is enabled.
Trait Implementations§
Source§impl Clone for ZfsDatasetRequest
impl Clone for ZfsDatasetRequest
Source§fn clone(&self) -> ZfsDatasetRequest
fn clone(&self) -> ZfsDatasetRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZfsDatasetRequest
impl Debug for ZfsDatasetRequest
Source§impl<'de> Deserialize<'de> for ZfsDatasetRequest
impl<'de> Deserialize<'de> for ZfsDatasetRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ZfsDatasetRequest
impl PartialEq for ZfsDatasetRequest
Source§fn eq(&self, other: &ZfsDatasetRequest) -> bool
fn eq(&self, other: &ZfsDatasetRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ZfsDatasetRequest
impl Serialize for ZfsDatasetRequest
impl Eq for ZfsDatasetRequest
impl StructuralPartialEq for ZfsDatasetRequest
Auto Trait Implementations§
impl Freeze for ZfsDatasetRequest
impl RefUnwindSafe for ZfsDatasetRequest
impl Send for ZfsDatasetRequest
impl Sync for ZfsDatasetRequest
impl Unpin for ZfsDatasetRequest
impl UnsafeUnpin for ZfsDatasetRequest
impl UnwindSafe for ZfsDatasetRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.