[][src]Struct melib::gpgme::LocateKey

pub struct LocateKey {
    bits: u8,
}

Fields

bits: u8

Implementations

impl LocateKey[src]

pub const CERT: LocateKey[src]

Locate a key using DNS CERT, as specified in RFC-4398.

pub const PKA: LocateKey[src]

Locate a key using DNS PKA.

pub const DANE: LocateKey[src]

Locate a key using DANE, as specified in draft-ietf-dane-openpgpkey-05.txt.

pub const WKD: LocateKey[src]

Locate a key using the Web Key Directory protocol.

pub const LDAP: LocateKey[src]

Using DNS Service Discovery, check the domain in question for any LDAP keyservers to use. If this fails, attempt to locate the key using the PGP Universal method of checking ‘ldap://keys.(thedomain)’.

pub const KEYSERVER: LocateKey[src]

Locate a key using a keyserver.

pub const KEYSERVER_URL: LocateKey[src]

In addition, a keyserver URL as used in the dirmngr configuration may be used here to query that particular keyserver.

pub const LOCAL: LocateKey[src]

Locate the key using the local keyrings. This mechanism allows the user to select the order a local key lookup is done. Thus using ‘--auto-key-locate local’ is identical to --no-auto-key-locate.

pub const NODEFAULT: LocateKey[src]

This flag disables the standard local key lookup, done before any of the mechanisms defined by the --auto-key-locate are tried. The position of this mechanism in the list does not matter. It is not required if local is also used.

pub const fn empty() -> LocateKey[src]

Returns an empty set of flags

pub const fn all() -> LocateKey[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u8[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u8) -> Option<LocateKey>[src]

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

pub const fn from_bits_truncate(bits: u8) -> LocateKey[src]

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

pub const unsafe fn from_bits_unchecked(bits: u8) -> LocateKey[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: LocateKey) -> bool[src]

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

pub const fn contains(&self, other: LocateKey) -> bool[src]

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

pub fn insert(&mut self, other: LocateKey)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: LocateKey)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: LocateKey)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: LocateKey, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

impl LocateKey[src]

pub fn from_string_de<'de, D, T: AsRef<str>>(s: T) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

Trait Implementations

impl Binary for LocateKey[src]

impl BitAnd<LocateKey> for LocateKey[src]

type Output = LocateKey

The resulting type after applying the & operator.

fn bitand(self, other: LocateKey) -> LocateKey[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<LocateKey> for LocateKey[src]

fn bitand_assign(&mut self, other: LocateKey)[src]

Disables all flags disabled in the set.

impl BitOr<LocateKey> for LocateKey[src]

type Output = LocateKey

The resulting type after applying the | operator.

fn bitor(self, other: LocateKey) -> LocateKey[src]

Returns the union of the two sets of flags.

impl BitOrAssign<LocateKey> for LocateKey[src]

fn bitor_assign(&mut self, other: LocateKey)[src]

Adds the set of flags.

impl BitXor<LocateKey> for LocateKey[src]

type Output = LocateKey

The resulting type after applying the ^ operator.

fn bitxor(self, other: LocateKey) -> LocateKey[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<LocateKey> for LocateKey[src]

fn bitxor_assign(&mut self, other: LocateKey)[src]

Toggles the set of flags.

impl Clone for LocateKey[src]

impl Copy for LocateKey[src]

impl Debug for LocateKey[src]

impl<'de> Deserialize<'de> for LocateKey[src]

impl Display for LocateKey[src]

impl Eq for LocateKey[src]

impl Extend<LocateKey> for LocateKey[src]

impl FromIterator<LocateKey> for LocateKey[src]

impl Hash for LocateKey[src]

impl LowerHex for LocateKey[src]

impl Not for LocateKey[src]

type Output = LocateKey

The resulting type after applying the ! operator.

fn not(self) -> LocateKey[src]

Returns the complement of this set of flags.

impl Octal for LocateKey[src]

impl Ord for LocateKey[src]

impl PartialEq<LocateKey> for LocateKey[src]

impl PartialOrd<LocateKey> for LocateKey[src]

impl Serialize for LocateKey[src]

impl StructuralEq for LocateKey[src]

impl StructuralPartialEq for LocateKey[src]

impl Sub<LocateKey> for LocateKey[src]

type Output = LocateKey

The resulting type after applying the - operator.

fn sub(self, other: LocateKey) -> LocateKey[src]

Returns the set difference of the two sets of flags.

impl SubAssign<LocateKey> for LocateKey[src]

fn sub_assign(&mut self, other: LocateKey)[src]

Disables all flags enabled in the set.

impl UpperHex for LocateKey[src]

Auto Trait Implementations

impl RefUnwindSafe for LocateKey

impl Send for LocateKey

impl Sync for LocateKey

impl Unpin for LocateKey

impl UnwindSafe for LocateKey

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]