Struct fiemap::FiemapExtentFlags [−]
pub struct FiemapExtentFlags { /* fields omitted */ }
Methods
impl FiemapExtentFlags
impl FiemapExtentFlags
pub const LAST: FiemapExtentFlags
LAST: FiemapExtentFlags = FiemapExtentFlags{bits: 1,}
Last extent in file.
pub const UNKNOWN: FiemapExtentFlags
UNKNOWN: FiemapExtentFlags = FiemapExtentFlags{bits: 2,}
Data location unknown.
pub const DELALLOC: FiemapExtentFlags
DELALLOC: FiemapExtentFlags = FiemapExtentFlags{bits: 4,}
Location still pending. Sets EXTENT_UNKNOWN.
pub const ENCODED: FiemapExtentFlags
ENCODED: FiemapExtentFlags = FiemapExtentFlags{bits: 8,}
Data can not be read while fs is unmounted
pub const DATA_ENCRYPTED: FiemapExtentFlags
DATA_ENCRYPTED: FiemapExtentFlags = FiemapExtentFlags{bits: 128,}
Data is encrypted by fs. Sets EXTENT_NO_BYPASS.
pub const NOT_ALIGNED: FiemapExtentFlags
NOT_ALIGNED: FiemapExtentFlags = FiemapExtentFlags{bits: 256,}
Extent offsets may not be block aligned.
pub const DATA_INLINE: FiemapExtentFlags
DATA_INLINE: FiemapExtentFlags = FiemapExtentFlags{bits: 512,}
Data mixed with metadata. Sets EXTENT_NOT_ALIGNED.
pub const DATA_TAIL: FiemapExtentFlags
DATA_TAIL: FiemapExtentFlags = FiemapExtentFlags{bits: 1024,}
Multiple files in block. Sets EXTENT_NOT_ALIGNED.
pub const UNWRITTEN: FiemapExtentFlags
UNWRITTEN: FiemapExtentFlags = FiemapExtentFlags{bits: 2048,}
Space allocated, but no data (i.e. zero).
pub const MERGED: FiemapExtentFlags
MERGED: FiemapExtentFlags = FiemapExtentFlags{bits: 4096,}
File does not natively support extents. Result merged for efficiency.
pub const SHARED: FiemapExtentFlags
SHARED: FiemapExtentFlags = FiemapExtentFlags{bits: 8192,}
Space shared with other files.
pub fn empty() -> FiemapExtentFlags
pub fn empty() -> FiemapExtentFlags
Returns an empty set of flags.
pub fn all() -> FiemapExtentFlags
pub fn all() -> FiemapExtentFlags
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<FiemapExtentFlags>
pub fn from_bits(bits: u32) -> Option<FiemapExtentFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> FiemapExtentFlags
pub fn from_bits_truncate(bits: u32) -> FiemapExtentFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: FiemapExtentFlags) -> bool
pub fn intersects(&self, other: FiemapExtentFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: FiemapExtentFlags) -> bool
pub fn contains(&self, other: FiemapExtentFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: FiemapExtentFlags)
pub fn insert(&mut self, other: FiemapExtentFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: FiemapExtentFlags)
pub fn remove(&mut self, other: FiemapExtentFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: FiemapExtentFlags)
pub fn toggle(&mut self, other: FiemapExtentFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: FiemapExtentFlags, value: bool)
pub fn set(&mut self, other: FiemapExtentFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for FiemapExtentFlags
impl Copy for FiemapExtentFlags
impl PartialEq for FiemapExtentFlags
impl PartialEq for FiemapExtentFlags
fn eq(&self, other: &FiemapExtentFlags) -> bool
fn eq(&self, other: &FiemapExtentFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FiemapExtentFlags) -> bool
fn ne(&self, other: &FiemapExtentFlags) -> bool
This method tests for !=
.
impl Eq for FiemapExtentFlags
impl Eq for FiemapExtentFlags
impl Clone for FiemapExtentFlags
impl Clone for FiemapExtentFlags
fn clone(&self) -> FiemapExtentFlags
fn clone(&self) -> FiemapExtentFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for FiemapExtentFlags
impl PartialOrd for FiemapExtentFlags
fn partial_cmp(&self, other: &FiemapExtentFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &FiemapExtentFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &FiemapExtentFlags) -> bool
fn lt(&self, other: &FiemapExtentFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &FiemapExtentFlags) -> bool
fn le(&self, other: &FiemapExtentFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &FiemapExtentFlags) -> bool
fn gt(&self, other: &FiemapExtentFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &FiemapExtentFlags) -> bool
fn ge(&self, other: &FiemapExtentFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for FiemapExtentFlags
impl Ord for FiemapExtentFlags
fn cmp(&self, other: &FiemapExtentFlags) -> Ordering
fn cmp(&self, other: &FiemapExtentFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for FiemapExtentFlags
impl Hash for FiemapExtentFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for FiemapExtentFlags
impl Debug for FiemapExtentFlags
impl Binary for FiemapExtentFlags
impl Binary for FiemapExtentFlags
impl Octal for FiemapExtentFlags
impl Octal for FiemapExtentFlags
impl LowerHex for FiemapExtentFlags
impl LowerHex for FiemapExtentFlags
impl UpperHex for FiemapExtentFlags
impl UpperHex for FiemapExtentFlags
impl BitOr for FiemapExtentFlags
impl BitOr for FiemapExtentFlags
type Output = FiemapExtentFlags
The resulting type after applying the |
operator.
fn bitor(self, other: FiemapExtentFlags) -> FiemapExtentFlags
fn bitor(self, other: FiemapExtentFlags) -> FiemapExtentFlags
Returns the union of the two sets of flags.
impl BitOrAssign for FiemapExtentFlags
impl BitOrAssign for FiemapExtentFlags
fn bitor_assign(&mut self, other: FiemapExtentFlags)
fn bitor_assign(&mut self, other: FiemapExtentFlags)
Adds the set of flags.
impl BitXor for FiemapExtentFlags
impl BitXor for FiemapExtentFlags
type Output = FiemapExtentFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: FiemapExtentFlags) -> FiemapExtentFlags
fn bitxor(self, other: FiemapExtentFlags) -> FiemapExtentFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for FiemapExtentFlags
impl BitXorAssign for FiemapExtentFlags
fn bitxor_assign(&mut self, other: FiemapExtentFlags)
fn bitxor_assign(&mut self, other: FiemapExtentFlags)
Toggles the set of flags.
impl BitAnd for FiemapExtentFlags
impl BitAnd for FiemapExtentFlags
type Output = FiemapExtentFlags
The resulting type after applying the &
operator.
fn bitand(self, other: FiemapExtentFlags) -> FiemapExtentFlags
fn bitand(self, other: FiemapExtentFlags) -> FiemapExtentFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for FiemapExtentFlags
impl BitAndAssign for FiemapExtentFlags
fn bitand_assign(&mut self, other: FiemapExtentFlags)
fn bitand_assign(&mut self, other: FiemapExtentFlags)
Disables all flags disabled in the set.
impl Sub for FiemapExtentFlags
impl Sub for FiemapExtentFlags
type Output = FiemapExtentFlags
The resulting type after applying the -
operator.
fn sub(self, other: FiemapExtentFlags) -> FiemapExtentFlags
fn sub(self, other: FiemapExtentFlags) -> FiemapExtentFlags
Returns the set difference of the two sets of flags.
impl SubAssign for FiemapExtentFlags
impl SubAssign for FiemapExtentFlags
fn sub_assign(&mut self, other: FiemapExtentFlags)
fn sub_assign(&mut self, other: FiemapExtentFlags)
Disables all flags enabled in the set.
impl Not for FiemapExtentFlags
impl Not for FiemapExtentFlags
type Output = FiemapExtentFlags
The resulting type after applying the !
operator.
fn not(self) -> FiemapExtentFlags
fn not(self) -> FiemapExtentFlags
Returns the complement of this set of flags.
impl Extend<FiemapExtentFlags> for FiemapExtentFlags
impl Extend<FiemapExtentFlags> for FiemapExtentFlags
fn extend<T: IntoIterator<Item = FiemapExtentFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FiemapExtentFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<FiemapExtentFlags> for FiemapExtentFlags
impl FromIterator<FiemapExtentFlags> for FiemapExtentFlags
fn from_iter<T: IntoIterator<Item = FiemapExtentFlags>>(
iterator: T
) -> FiemapExtentFlags
fn from_iter<T: IntoIterator<Item = FiemapExtentFlags>>(
iterator: T
) -> FiemapExtentFlags
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for FiemapExtentFlags
impl Send for FiemapExtentFlags
impl Sync for FiemapExtentFlags
impl Sync for FiemapExtentFlags