Enum devicemapper::DevId
source · pub enum DevId<'a> {
Name(&'a DmName),
Uuid(&'a DmUuid),
}
Expand description
Used as a parameter for functions that take either a Device name or a Device UUID.
Variants§
Name(&'a DmName)
The parameter is the device’s name
Uuid(&'a DmUuid)
The parameter is the device’s devicemapper uuid
Trait Implementations§
source§impl<'a> PartialEq for DevId<'a>
impl<'a> PartialEq for DevId<'a>
impl<'a> Eq for DevId<'a>
impl<'a> StructuralPartialEq for DevId<'a>
Auto Trait Implementations§
impl<'a> Freeze for DevId<'a>
impl<'a> RefUnwindSafe for DevId<'a>
impl<'a> Send for DevId<'a>
impl<'a> Sync for DevId<'a>
impl<'a> Unpin for DevId<'a>
impl<'a> UnwindSafe for DevId<'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