Struct gio::TlsCertificateFlags
source · [−]pub struct TlsCertificateFlags { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Binary for TlsCertificateFlags
impl Binary for TlsCertificateFlags
sourceimpl BitAnd<TlsCertificateFlags> for TlsCertificateFlags
impl BitAnd<TlsCertificateFlags> for TlsCertificateFlags
sourcefn bitand(self, other: TlsCertificateFlags) -> TlsCertificateFlags
fn bitand(self, other: TlsCertificateFlags) -> TlsCertificateFlags
Returns the intersection between the two sets of flags.
type Output = TlsCertificateFlags
type Output = TlsCertificateFlags
& operator.sourceimpl BitAndAssign<TlsCertificateFlags> for TlsCertificateFlags
impl BitAndAssign<TlsCertificateFlags> for TlsCertificateFlags
sourcefn bitand_assign(&mut self, other: TlsCertificateFlags)
fn bitand_assign(&mut self, other: TlsCertificateFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<TlsCertificateFlags> for TlsCertificateFlags
impl BitOr<TlsCertificateFlags> for TlsCertificateFlags
sourcefn bitor(self, other: TlsCertificateFlags) -> TlsCertificateFlags
fn bitor(self, other: TlsCertificateFlags) -> TlsCertificateFlags
Returns the union of the two sets of flags.
type Output = TlsCertificateFlags
type Output = TlsCertificateFlags
| operator.sourceimpl BitOrAssign<TlsCertificateFlags> for TlsCertificateFlags
impl BitOrAssign<TlsCertificateFlags> for TlsCertificateFlags
sourcefn bitor_assign(&mut self, other: TlsCertificateFlags)
fn bitor_assign(&mut self, other: TlsCertificateFlags)
Adds the set of flags.
sourceimpl BitXor<TlsCertificateFlags> for TlsCertificateFlags
impl BitXor<TlsCertificateFlags> for TlsCertificateFlags
sourcefn bitxor(self, other: TlsCertificateFlags) -> TlsCertificateFlags
fn bitxor(self, other: TlsCertificateFlags) -> TlsCertificateFlags
Returns the left flags, but with all the right flags toggled.
type Output = TlsCertificateFlags
type Output = TlsCertificateFlags
^ operator.sourceimpl BitXorAssign<TlsCertificateFlags> for TlsCertificateFlags
impl BitXorAssign<TlsCertificateFlags> for TlsCertificateFlags
sourcefn bitxor_assign(&mut self, other: TlsCertificateFlags)
fn bitxor_assign(&mut self, other: TlsCertificateFlags)
Toggles the set of flags.
sourceimpl Clone for TlsCertificateFlags
impl Clone for TlsCertificateFlags
sourcefn clone(&self) -> TlsCertificateFlags
fn clone(&self) -> TlsCertificateFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for TlsCertificateFlags
impl Debug for TlsCertificateFlags
sourceimpl Extend<TlsCertificateFlags> for TlsCertificateFlags
impl Extend<TlsCertificateFlags> for TlsCertificateFlags
sourcefn extend<T: IntoIterator<Item = TlsCertificateFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TlsCertificateFlags>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<TlsCertificateFlags> for TlsCertificateFlags
impl FromIterator<TlsCertificateFlags> for TlsCertificateFlags
sourcefn from_iter<T: IntoIterator<Item = TlsCertificateFlags>>(
iterator: T
) -> TlsCertificateFlags
fn from_iter<T: IntoIterator<Item = TlsCertificateFlags>>(
iterator: T
) -> TlsCertificateFlags
sourceimpl<'a> FromValue<'a> for TlsCertificateFlags
impl<'a> FromValue<'a> for TlsCertificateFlags
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for TlsCertificateFlags
impl<'a> FromValueOptional<'a> for TlsCertificateFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for TlsCertificateFlags
impl Hash for TlsCertificateFlags
sourceimpl LowerHex for TlsCertificateFlags
impl LowerHex for TlsCertificateFlags
sourceimpl Not for TlsCertificateFlags
impl Not for TlsCertificateFlags
sourcefn not(self) -> TlsCertificateFlags
fn not(self) -> TlsCertificateFlags
Returns the complement of this set of flags.
type Output = TlsCertificateFlags
type Output = TlsCertificateFlags
! operator.sourceimpl Octal for TlsCertificateFlags
impl Octal for TlsCertificateFlags
sourceimpl Ord for TlsCertificateFlags
impl Ord for TlsCertificateFlags
sourcefn cmp(&self, other: &TlsCertificateFlags) -> Ordering
fn cmp(&self, other: &TlsCertificateFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<TlsCertificateFlags> for TlsCertificateFlags
impl PartialEq<TlsCertificateFlags> for TlsCertificateFlags
sourcefn eq(&self, other: &TlsCertificateFlags) -> bool
fn eq(&self, other: &TlsCertificateFlags) -> bool
sourceimpl PartialOrd<TlsCertificateFlags> for TlsCertificateFlags
impl PartialOrd<TlsCertificateFlags> for TlsCertificateFlags
sourcefn partial_cmp(&self, other: &TlsCertificateFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &TlsCertificateFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl SetValue for TlsCertificateFlags
impl SetValue for TlsCertificateFlags
sourceimpl StaticType for TlsCertificateFlags
impl StaticType for TlsCertificateFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<TlsCertificateFlags> for TlsCertificateFlags
impl Sub<TlsCertificateFlags> for TlsCertificateFlags
sourcefn sub(self, other: TlsCertificateFlags) -> TlsCertificateFlags
fn sub(self, other: TlsCertificateFlags) -> TlsCertificateFlags
Returns the set difference of the two sets of flags.
type Output = TlsCertificateFlags
type Output = TlsCertificateFlags
- operator.sourceimpl SubAssign<TlsCertificateFlags> for TlsCertificateFlags
impl SubAssign<TlsCertificateFlags> for TlsCertificateFlags
sourcefn sub_assign(&mut self, other: TlsCertificateFlags)
fn sub_assign(&mut self, other: TlsCertificateFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for TlsCertificateFlags
impl UpperHex for TlsCertificateFlags
impl Copy for TlsCertificateFlags
impl Eq for TlsCertificateFlags
impl StructuralEq for TlsCertificateFlags
impl StructuralPartialEq for TlsCertificateFlags
Auto Trait Implementations
impl RefUnwindSafe for TlsCertificateFlags
impl Send for TlsCertificateFlags
impl Sync for TlsCertificateFlags
impl Unpin for TlsCertificateFlags
impl UnwindSafe for TlsCertificateFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.