pub struct TlsPasswordFlags { /* private fields */ }
Implementations§
Source§impl TlsPasswordFlags
impl TlsPasswordFlags
pub const NONE: TlsPasswordFlags
pub const RETRY: TlsPasswordFlags
pub const MANY_TRIES: TlsPasswordFlags
pub const FINAL_TRY: TlsPasswordFlags
Sourcepub const fn empty() -> TlsPasswordFlags
pub const fn empty() -> TlsPasswordFlags
Returns an empty set of flags
Sourcepub const fn all() -> TlsPasswordFlags
pub const fn all() -> TlsPasswordFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<TlsPasswordFlags>
pub fn from_bits(bits: u32) -> Option<TlsPasswordFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> TlsPasswordFlags
pub const fn from_bits_truncate(bits: u32) -> TlsPasswordFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> TlsPasswordFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> TlsPasswordFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: TlsPasswordFlags) -> bool
pub const fn intersects(&self, other: TlsPasswordFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: TlsPasswordFlags) -> bool
pub const fn contains(&self, other: TlsPasswordFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: TlsPasswordFlags)
pub fn insert(&mut self, other: TlsPasswordFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: TlsPasswordFlags)
pub fn remove(&mut self, other: TlsPasswordFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: TlsPasswordFlags)
pub fn toggle(&mut self, other: TlsPasswordFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: TlsPasswordFlags, value: bool)
pub fn set(&mut self, other: TlsPasswordFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for TlsPasswordFlags
impl Binary for TlsPasswordFlags
Source§impl BitAnd for TlsPasswordFlags
impl BitAnd for TlsPasswordFlags
Source§fn bitand(self, other: TlsPasswordFlags) -> TlsPasswordFlags
fn bitand(self, other: TlsPasswordFlags) -> TlsPasswordFlags
Returns the intersection between the two sets of flags.
Source§type Output = TlsPasswordFlags
type Output = TlsPasswordFlags
&
operator.Source§impl BitAndAssign for TlsPasswordFlags
impl BitAndAssign for TlsPasswordFlags
Source§fn bitand_assign(&mut self, other: TlsPasswordFlags)
fn bitand_assign(&mut self, other: TlsPasswordFlags)
Disables all flags disabled in the set.
Source§impl BitOr for TlsPasswordFlags
impl BitOr for TlsPasswordFlags
Source§fn bitor(self, other: TlsPasswordFlags) -> TlsPasswordFlags
fn bitor(self, other: TlsPasswordFlags) -> TlsPasswordFlags
Returns the union of the two sets of flags.
Source§type Output = TlsPasswordFlags
type Output = TlsPasswordFlags
|
operator.Source§impl BitOrAssign for TlsPasswordFlags
impl BitOrAssign for TlsPasswordFlags
Source§fn bitor_assign(&mut self, other: TlsPasswordFlags)
fn bitor_assign(&mut self, other: TlsPasswordFlags)
Adds the set of flags.
Source§impl BitXor for TlsPasswordFlags
impl BitXor for TlsPasswordFlags
Source§fn bitxor(self, other: TlsPasswordFlags) -> TlsPasswordFlags
fn bitxor(self, other: TlsPasswordFlags) -> TlsPasswordFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = TlsPasswordFlags
type Output = TlsPasswordFlags
^
operator.Source§impl BitXorAssign for TlsPasswordFlags
impl BitXorAssign for TlsPasswordFlags
Source§fn bitxor_assign(&mut self, other: TlsPasswordFlags)
fn bitxor_assign(&mut self, other: TlsPasswordFlags)
Toggles the set of flags.
Source§impl Clone for TlsPasswordFlags
impl Clone for TlsPasswordFlags
Source§fn clone(&self) -> TlsPasswordFlags
fn clone(&self) -> TlsPasswordFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TlsPasswordFlags
impl Debug for TlsPasswordFlags
Source§impl Extend<TlsPasswordFlags> for TlsPasswordFlags
impl Extend<TlsPasswordFlags> for TlsPasswordFlags
Source§fn extend<T: IntoIterator<Item = TlsPasswordFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TlsPasswordFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<TlsPasswordFlags> for TlsPasswordFlags
impl FromIterator<TlsPasswordFlags> for TlsPasswordFlags
Source§fn from_iter<T: IntoIterator<Item = TlsPasswordFlags>>(
iterator: T,
) -> TlsPasswordFlags
fn from_iter<T: IntoIterator<Item = TlsPasswordFlags>>( iterator: T, ) -> TlsPasswordFlags
Source§impl<'a> FromValue<'a> for TlsPasswordFlags
impl<'a> FromValue<'a> for TlsPasswordFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for TlsPasswordFlags
impl<'a> FromValueOptional<'a> for TlsPasswordFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for TlsPasswordFlags
impl Hash for TlsPasswordFlags
Source§impl LowerHex for TlsPasswordFlags
impl LowerHex for TlsPasswordFlags
Source§impl Not for TlsPasswordFlags
impl Not for TlsPasswordFlags
Source§fn not(self) -> TlsPasswordFlags
fn not(self) -> TlsPasswordFlags
Returns the complement of this set of flags.
Source§type Output = TlsPasswordFlags
type Output = TlsPasswordFlags
!
operator.Source§impl Octal for TlsPasswordFlags
impl Octal for TlsPasswordFlags
Source§impl Ord for TlsPasswordFlags
impl Ord for TlsPasswordFlags
Source§fn cmp(&self, other: &TlsPasswordFlags) -> Ordering
fn cmp(&self, other: &TlsPasswordFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TlsPasswordFlags
impl PartialEq for TlsPasswordFlags
Source§impl PartialOrd for TlsPasswordFlags
impl PartialOrd for TlsPasswordFlags
Source§impl StaticType for TlsPasswordFlags
impl StaticType for TlsPasswordFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for TlsPasswordFlags
impl Sub for TlsPasswordFlags
Source§fn sub(self, other: TlsPasswordFlags) -> TlsPasswordFlags
fn sub(self, other: TlsPasswordFlags) -> TlsPasswordFlags
Returns the set difference of the two sets of flags.
Source§type Output = TlsPasswordFlags
type Output = TlsPasswordFlags
-
operator.Source§impl SubAssign for TlsPasswordFlags
impl SubAssign for TlsPasswordFlags
Source§fn sub_assign(&mut self, other: TlsPasswordFlags)
fn sub_assign(&mut self, other: TlsPasswordFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for TlsPasswordFlags
impl UpperHex for TlsPasswordFlags
impl Copy for TlsPasswordFlags
impl Eq for TlsPasswordFlags
impl StructuralPartialEq for TlsPasswordFlags
Auto Trait Implementations§
impl Freeze for TlsPasswordFlags
impl RefUnwindSafe for TlsPasswordFlags
impl Send for TlsPasswordFlags
impl Sync for TlsPasswordFlags
impl Unpin for TlsPasswordFlags
impl UnwindSafe for TlsPasswordFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.