pub enum SystemUseField {
Show 15 variants
SuspIdentifier(SuspIdentifier),
Terminator,
ContinuationArea(ContinuationArea),
Padding(PaddingField),
ExtensionReference(ExtensionReference),
PosixAttributes(PxEntry),
DeviceNumber(PnEntry),
AlternateName(NmEntry),
SymbolicLink(SlEntry),
Timestamps(TfEntry),
ChildLink(ClEntry),
ParentLink(PlEntry),
Relocated,
ExtensionSelector {
extension_sequence: u8,
},
Unknown(SystemUseHeader, [u8; 252]),
}Available on crate features
alloc and sync only.Expand description
A parsed system use field
Variants§
SuspIdentifier(SuspIdentifier)
SP - SUSP Identifier entry
Terminator
ST - Terminator entry
ContinuationArea(ContinuationArea)
CE - Continuation Area entry
Padding(PaddingField)
PD - Padding entry
ExtensionReference(ExtensionReference)
ER - Extension Reference entry
PosixAttributes(PxEntry)
PX - POSIX file attributes
DeviceNumber(PnEntry)
PN - POSIX device numbers
AlternateName(NmEntry)
NM - Alternate name (real filename)
SymbolicLink(SlEntry)
SL - Symbolic link
Timestamps(TfEntry)
TF - Timestamps
ChildLink(ClEntry)
CL - Child link (relocated directory)
ParentLink(PlEntry)
PL - Parent link (relocated directory)
Relocated
RE - Relocated directory marker
ExtensionSelector
ES - Extension Selector
Unknown(SystemUseHeader, [u8; 252])
Unknown entry (not recognized)
Implementations§
Source§impl SystemUseField
impl SystemUseField
Sourcepub fn as_posix_attributes(&self) -> Option<&PxEntry>
pub fn as_posix_attributes(&self) -> Option<&PxEntry>
Returns the PX entry if this is a PosixAttributes variant.
Sourcepub fn as_alternate_name(&self) -> Option<&NmEntry>
pub fn as_alternate_name(&self) -> Option<&NmEntry>
Returns the NM entry if this is an AlternateName variant.
Sourcepub fn as_timestamps(&self) -> Option<&TfEntry>
pub fn as_timestamps(&self) -> Option<&TfEntry>
Returns the TF entry if this is a Timestamps variant.
Sourcepub fn as_symbolic_link(&self) -> Option<&SlEntry>
pub fn as_symbolic_link(&self) -> Option<&SlEntry>
Returns the SL entry if this is a SymbolicLink variant.
Trait Implementations§
Source§impl Clone for SystemUseField
impl Clone for SystemUseField
Auto Trait Implementations§
impl Freeze for SystemUseField
impl RefUnwindSafe for SystemUseField
impl Send for SystemUseField
impl Sync for SystemUseField
impl Unpin for SystemUseField
impl UnsafeUnpin for SystemUseField
impl UnwindSafe for SystemUseField
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