Struct gpgme::ops::KeyListMode []

pub struct KeyListMode {
    // some fields omitted
}

Methods

impl KeyListMode

fn empty() -> KeyListMode

Returns an empty set of flags.

fn all() -> KeyListMode

Returns the set containing all flags.

fn bits(&self) -> gpgme_keylist_mode_t

Returns the raw value of the flags currently stored.

fn from_bits(bits: gpgme_keylist_mode_t) -> Option<KeyListMode>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: gpgme_keylist_mode_t) -> KeyListMode

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: KeyListMode) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: KeyListMode) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: KeyListMode)

Inserts the specified flags in-place.

fn remove(&mut self, other: KeyListMode)

Removes the specified flags in-place.

fn toggle(&mut self, other: KeyListMode)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for KeyListMode

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for KeyListMode

type Output = KeyListMode

fn bitor(self, other: KeyListMode) -> KeyListMode

impl BitXor for KeyListMode

type Output = KeyListMode

fn bitxor(self, other: KeyListMode) -> KeyListMode

impl BitAnd for KeyListMode

type Output = KeyListMode

fn bitand(self, other: KeyListMode) -> KeyListMode

impl Sub for KeyListMode

type Output = KeyListMode

fn sub(self, other: KeyListMode) -> KeyListMode

impl Not for KeyListMode

type Output = KeyListMode

fn not(self) -> KeyListMode

impl FromIterator<KeyListMode> for KeyListMode

fn from_iter<T: IntoIterator<Item=KeyListMode>>(iterator: T) -> KeyListMode

Derived Implementations

impl Hash for KeyListMode

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for KeyListMode

fn cmp(&self, __arg_0: &KeyListMode) -> Ordering

impl PartialOrd for KeyListMode

fn partial_cmp(&self, __arg_0: &KeyListMode) -> Option<Ordering>

fn lt(&self, __arg_0: &KeyListMode) -> bool

fn le(&self, __arg_0: &KeyListMode) -> bool

fn gt(&self, __arg_0: &KeyListMode) -> bool

fn ge(&self, __arg_0: &KeyListMode) -> bool

impl Clone for KeyListMode

fn clone(&self) -> KeyListMode

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for KeyListMode

impl PartialEq for KeyListMode

fn eq(&self, __arg_0: &KeyListMode) -> bool

fn ne(&self, __arg_0: &KeyListMode) -> bool

impl Copy for KeyListMode