pub enum DeviceSpec<'a> {
Path(&'a CStr),
Id(u64),
}Expand description
Specifies a device for operations that can address by either path or ID.
Variants§
Path(&'a CStr)
A block device path (e.g. /dev/sdb), or the special strings
"missing" or "cancel" accepted by the remove ioctl.
Id(u64)
A btrfs device ID as reported by BTRFS_IOC_DEV_INFO.
Trait Implementations§
Source§impl<'a> Clone for DeviceSpec<'a>
impl<'a> Clone for DeviceSpec<'a>
Source§fn clone(&self) -> DeviceSpec<'a>
fn clone(&self) -> DeviceSpec<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for DeviceSpec<'a>
impl<'a> RefUnwindSafe for DeviceSpec<'a>
impl<'a> Send for DeviceSpec<'a>
impl<'a> Sync for DeviceSpec<'a>
impl<'a> Unpin for DeviceSpec<'a>
impl<'a> UnsafeUnpin for DeviceSpec<'a>
impl<'a> UnwindSafe for DeviceSpec<'a>
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