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