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