pub enum VolumeSerial {
Short(u32),
Long(u64),
}Expand description
A volume serial number, tagged by width so a 4-byte serial cannot be confused with an 8-byte one (they render differently and join different artifacts).
Variants§
Short(u32)
A 4-byte serial — FAT BS_VolID or exFAT VolumeSerialNumber. Rendered XXXX-XXXX,
the form Shell Links and EMDMgmt record.
Long(u64)
The 8-byte NTFS volume serial. Rendered XXXXXXXX-XXXXXXXX; by width it cannot collide
with a 4-byte serial.
Implementations§
Trait Implementations§
Source§impl Clone for VolumeSerial
impl Clone for VolumeSerial
Source§fn clone(&self) -> VolumeSerial
fn clone(&self) -> VolumeSerial
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 VolumeSerial
Source§impl Debug for VolumeSerial
impl Debug for VolumeSerial
impl Eq for VolumeSerial
Source§impl PartialEq for VolumeSerial
impl PartialEq for VolumeSerial
impl StructuralPartialEq for VolumeSerial
Auto Trait Implementations§
impl Freeze for VolumeSerial
impl RefUnwindSafe for VolumeSerial
impl Send for VolumeSerial
impl Sync for VolumeSerial
impl Unpin for VolumeSerial
impl UnsafeUnpin for VolumeSerial
impl UnwindSafe for VolumeSerial
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