#[non_exhaustive]pub enum Capability {
FormatVersion,
DirectoryFlush,
TrimInPlace,
Unshare,
AtomicWrite,
Platform,
}Expand description
A capability the platform, filesystem or device does not offer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FormatVersion
A newer on-disk format or incompatible feature flags, or a format-1
store opened for writing (format 1 is read-only from 0.5: copy it to
format 2 with copy_store).
DirectoryFlush
Directory flushes.
TrimInPlace
Trimming in place.
Unsharing cloned extents.
AtomicWrite
Atomic (untorn) writes of the requested size.
Platform
The operation on this platform.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 moreimpl Copy for Capability
Source§impl Debug for Capability
impl Debug for Capability
impl Eq for Capability
Source§impl PartialEq for Capability
impl PartialEq for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Forget for Capability
impl Freeze for Capability
impl Move for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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