#[non_exhaustive]pub enum Tag {
Label(Label),
Uuid(Uuid),
PartLabel(Label),
PartUuid(Uuid),
Id(Id),
}Expand description
A device tag.
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.
Label(Label)
Human readable filesystem identifier.
Uuid(Uuid)
Filesystem universally unique identifier.
PartLabel(Label)
Human readable partition identifier.
PartUuid(Uuid)
Partition universally unique identifier.
Id(Id)
Hardware block device ID as generated by udevd.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn is_partition_label(&self) -> bool
pub fn is_partition_label(&self) -> bool
Returns true if this Tag represents a PARTLABEL.
Sourcepub fn is_partition_uuid(&self) -> bool
pub fn is_partition_uuid(&self) -> bool
Returns true if this Tag represents a PARTUUID.
Trait Implementations§
Source§impl From<Tag> for MountSource
impl From<Tag> for MountSource
Source§fn from(share: Tag) -> MountSource
fn from(share: Tag) -> MountSource
Converts to this type from the input type.
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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