Struct gpgme::ops::EncryptFlags []

pub struct EncryptFlags {
    // some fields omitted
}

Methods

impl EncryptFlags

fn empty() -> EncryptFlags

Returns an empty set of flags.

fn all() -> EncryptFlags

Returns the set containing all flags.

fn bits(&self) -> gpgme_encrypt_flags_t

Returns the raw value of the flags currently stored.

fn from_bits(bits: gpgme_encrypt_flags_t) -> Option<EncryptFlags>

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

fn from_bits_truncate(bits: gpgme_encrypt_flags_t) -> EncryptFlags

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: EncryptFlags) -> bool

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

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

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

fn insert(&mut self, other: EncryptFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: EncryptFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: EncryptFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for EncryptFlags

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

impl BitOr for EncryptFlags

type Output = EncryptFlags

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

impl BitXor for EncryptFlags

type Output = EncryptFlags

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

impl BitAnd for EncryptFlags

type Output = EncryptFlags

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

impl Sub for EncryptFlags

type Output = EncryptFlags

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

impl Not for EncryptFlags

type Output = EncryptFlags

fn not(self) -> EncryptFlags

impl FromIterator<EncryptFlags> for EncryptFlags

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

Derived Implementations

impl Hash for EncryptFlags

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 EncryptFlags

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

impl PartialOrd for EncryptFlags

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

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

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

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

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

impl Clone for EncryptFlags

fn clone(&self) -> EncryptFlags

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

impl Eq for EncryptFlags

impl PartialEq for EncryptFlags

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

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

impl Copy for EncryptFlags