Struct devicemapper::DmFlags [−]
pub struct DmFlags { /* fields omitted */ }
Flags used by devicemapper.
Methods
impl DmFlags
impl DmFlags
pub const DM_READONLY: DmFlags
DM_READONLY: DmFlags = DmFlags{bits: 1 << 0,}
In: Device should be read-only. Out: Device is read-only.
pub const DM_SUSPEND: DmFlags
DM_SUSPEND: DmFlags = DmFlags{bits: 1 << 1,}
In: Device should be suspended. Out: Device is suspended.
pub const DM_PERSISTENT_DEV: DmFlags
DM_PERSISTENT_DEV: DmFlags = DmFlags{bits: 1 << 3,}
In: Use passed-in minor number.
pub const DM_STATUS_TABLE: DmFlags
DM_STATUS_TABLE: DmFlags = DmFlags{bits: 1 << 4,}
In: STATUS command returns table info instead of status.
pub const DM_ACTIVE_PRESENT: DmFlags
DM_ACTIVE_PRESENT: DmFlags = DmFlags{bits: 1 << 5,}
Out: Active table is present.
pub const DM_INACTIVE_PRESENT: DmFlags
DM_INACTIVE_PRESENT: DmFlags = DmFlags{bits: 1 << 6,}
Out: Inactive table is present.
pub const DM_BUFFER_FULL: DmFlags
DM_BUFFER_FULL: DmFlags = DmFlags{bits: 1 << 8,}
Out: Passed-in buffer was too small.
pub const DM_SKIP_BDGET: DmFlags
DM_SKIP_BDGET: DmFlags = DmFlags{bits: 1 << 9,}
Obsolete.
pub const DM_SKIP_LOCKFS: DmFlags
DM_SKIP_LOCKFS: DmFlags = DmFlags{bits: 1 << 10,}
In: Avoid freezing filesystem when suspending.
pub const DM_NOFLUSH: DmFlags
DM_NOFLUSH: DmFlags = DmFlags{bits: 1 << 11,}
In: Suspend without flushing queued I/Os.
pub const DM_QUERY_INACTIVE_TABLE: DmFlags
DM_QUERY_INACTIVE_TABLE: DmFlags = DmFlags{bits: 1 << 12,}
In: Query inactive table instead of active.
pub const DM_UEVENT_GENERATED: DmFlags
DM_UEVENT_GENERATED: DmFlags = DmFlags{bits: 1 << 13,}
Out: A uevent was generated, the caller may need to wait for it.
pub const DM_UUID: DmFlags
DM_UUID: DmFlags = DmFlags{bits: 1 << 14,}
In: Rename affects UUID field, not name field.
pub const DM_SECURE_DATA: DmFlags
DM_SECURE_DATA: DmFlags = DmFlags{bits: 1 << 15,}
In: All buffers are wiped after use. Use when handling crypto keys.
pub const DM_DATA_OUT: DmFlags
DM_DATA_OUT: DmFlags = DmFlags{bits: 1 << 16,}
Out: A message generated output data.
pub const DM_DEFERRED_REMOVE: DmFlags
DM_DEFERRED_REMOVE: DmFlags = DmFlags{bits: 1 << 17,}
In: Do not remove in-use devices. Out: Device scheduled to be removed when closed.
pub const DM_INTERNAL_SUSPEND: DmFlags
DM_INTERNAL_SUSPEND: DmFlags = DmFlags{bits: 1 << 18,}
Out: Device is suspended internally.
pub fn empty() -> DmFlags
pub fn empty() -> DmFlags
Returns an empty set of flags.
pub fn all() -> DmFlags
pub fn all() -> DmFlags
Returns the set containing all flags.
pub fn bits(&self) -> c_uint
pub fn bits(&self) -> c_uint
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: c_uint) -> Option<DmFlags>
pub fn from_bits(bits: c_uint) -> Option<DmFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_uint) -> DmFlags
pub fn from_bits_truncate(bits: c_uint) -> DmFlags
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: DmFlags) -> bool
pub fn intersects(&self, other: DmFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: DmFlags) -> bool
pub fn contains(&self, other: DmFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: DmFlags)
pub fn insert(&mut self, other: DmFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: DmFlags)
pub fn remove(&mut self, other: DmFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: DmFlags)
pub fn toggle(&mut self, other: DmFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: DmFlags, value: bool)
pub fn set(&mut self, other: DmFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for DmFlags
impl Copy for DmFlags
impl PartialEq for DmFlags
impl PartialEq for DmFlags
fn eq(&self, other: &DmFlags) -> bool
fn eq(&self, other: &DmFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DmFlags) -> bool
fn ne(&self, other: &DmFlags) -> bool
This method tests for !=
.
impl Eq for DmFlags
impl Eq for DmFlags
impl Clone for DmFlags
impl Clone for DmFlags
fn clone(&self) -> DmFlags
fn clone(&self) -> DmFlags
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 DmFlags
impl PartialOrd for DmFlags
fn partial_cmp(&self, other: &DmFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &DmFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &DmFlags) -> bool
fn lt(&self, other: &DmFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &DmFlags) -> bool
fn le(&self, other: &DmFlags) -> 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: &DmFlags) -> bool
fn gt(&self, other: &DmFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &DmFlags) -> bool
fn ge(&self, other: &DmFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for DmFlags
impl Ord for DmFlags
fn cmp(&self, other: &DmFlags) -> Ordering
fn cmp(&self, other: &DmFlags) -> 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 DmFlags
impl Hash for DmFlags
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 Default for DmFlags
[src]
impl Default for DmFlags
impl Debug for DmFlags
impl Debug for DmFlags
impl Binary for DmFlags
impl Binary for DmFlags
impl Octal for DmFlags
impl Octal for DmFlags
impl LowerHex for DmFlags
impl LowerHex for DmFlags
impl UpperHex for DmFlags
impl UpperHex for DmFlags
impl BitOr for DmFlags
impl BitOr for DmFlags
type Output = DmFlags
The resulting type after applying the |
operator.
fn bitor(self, other: DmFlags) -> DmFlags
fn bitor(self, other: DmFlags) -> DmFlags
Returns the union of the two sets of flags.
impl BitOrAssign for DmFlags
impl BitOrAssign for DmFlags
fn bitor_assign(&mut self, other: DmFlags)
fn bitor_assign(&mut self, other: DmFlags)
Adds the set of flags.
impl BitXor for DmFlags
impl BitXor for DmFlags
type Output = DmFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: DmFlags) -> DmFlags
fn bitxor(self, other: DmFlags) -> DmFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for DmFlags
impl BitXorAssign for DmFlags
fn bitxor_assign(&mut self, other: DmFlags)
fn bitxor_assign(&mut self, other: DmFlags)
Toggles the set of flags.
impl BitAnd for DmFlags
impl BitAnd for DmFlags
type Output = DmFlags
The resulting type after applying the &
operator.
fn bitand(self, other: DmFlags) -> DmFlags
fn bitand(self, other: DmFlags) -> DmFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for DmFlags
impl BitAndAssign for DmFlags
fn bitand_assign(&mut self, other: DmFlags)
fn bitand_assign(&mut self, other: DmFlags)
Disables all flags disabled in the set.
impl Sub for DmFlags
impl Sub for DmFlags
type Output = DmFlags
The resulting type after applying the -
operator.
fn sub(self, other: DmFlags) -> DmFlags
fn sub(self, other: DmFlags) -> DmFlags
Returns the set difference of the two sets of flags.
impl SubAssign for DmFlags
impl SubAssign for DmFlags
fn sub_assign(&mut self, other: DmFlags)
fn sub_assign(&mut self, other: DmFlags)
Disables all flags enabled in the set.
impl Not for DmFlags
impl Not for DmFlags
type Output = DmFlags
The resulting type after applying the !
operator.
fn not(self) -> DmFlags
fn not(self) -> DmFlags
Returns the complement of this set of flags.
impl Extend<DmFlags> for DmFlags
impl Extend<DmFlags> for DmFlags
fn extend<T: IntoIterator<Item = DmFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = DmFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<DmFlags> for DmFlags
impl FromIterator<DmFlags> for DmFlags
fn from_iter<T: IntoIterator<Item = DmFlags>>(iterator: T) -> DmFlags
fn from_iter<T: IntoIterator<Item = DmFlags>>(iterator: T) -> DmFlags
Creates a value from an iterator. Read more