pub enum VirtualFileFooterContent {
FileMap(u64, u64),
Directory(Vec<u64>),
Symlink(PlatformString),
Hardlink(u64),
SpecialFile(u64, SpecialFileType),
}Expand description
Encodes the type-specific content stored in a VirtualFileFooter.
For regular virtual files this stores the location of the serialized VirtualFileMap, while other variants carry the data needed to represent directories, links, and special files directly in the footer (inline).
Variants§
FileMap(u64, u64)
Contains the (segment_no, offset) tuple of the corresponding serialized
VirtualFileMap.
Directory(Vec<u64>)
Contains the file numbers of all direct children of the directory.
Symlink(PlatformString)
Contains the symlink target path.
Hardlink(u64)
Contains the file number of the referenced hardlink target.
SpecialFile(u64, SpecialFileType)
Contains the merged rdev identifier and the corresponding special file type.
Trait Implementations§
Source§fn clone(&self) -> VirtualFileFooterContent
fn clone(&self) -> VirtualFileFooterContent
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 moreSource§fn from(value: VirtualFileContent) -> Self
fn from(value: VirtualFileContent) -> Self
Converts to this type from the input type.
Source§fn from(value: VirtualFileFooterContent) -> Self
fn from(value: VirtualFileFooterContent) -> Self
Converts to this type from the input type.
Source§type Item = VirtualFileFooterContent
type Item = VirtualFileFooterContent
the return value for decode_directly() and decode_for_key();
Source§fn decode_directly<R: Read>(data: &mut R) -> Result<Self::Item>
fn decode_directly<R: Read>(data: &mut R) -> Result<Self::Item>
decodes the value directly. Read more
Source§fn check_key_on_position<K: Into<String>, R: Read>(data: &mut R, key: K) -> bool
fn check_key_on_position<K: Into<String>, R: Read>(data: &mut R, key: K) -> bool
helper method to check, if the key is on position. Read more
Source§fn identifier(&self) -> u8
fn identifier(&self) -> u8
returns the identifier of the appropriate type. Read more
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Returns the size of an encoded element. Read more
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more