[]Struct pgp::packet::types::KeyFlags

pub struct KeyFlags(pub u8);

Methods

impl KeyFlags

pub fn certify(&self) -> bool

pub fn set_certify(&mut self, value: bool)

pub fn sign(&self) -> bool

pub fn set_sign(&mut self, value: bool)

pub fn encrypt_comms(&self) -> bool

pub fn set_encrypt_comms(&mut self, value: bool)

pub fn encrypt_storage(&self) -> bool

pub fn set_encrypt_storage(&mut self, value: bool)

pub fn shared(&self) -> bool

pub fn set_shared(&mut self, value: bool)

pub fn authentication(&self) -> bool

pub fn set_authentication(&mut self, value: bool)

pub fn group(&self) -> bool

pub fn set_group(&mut self, value: bool)

Trait Implementations

impl<'a> From<&'a [u8]> for KeyFlags[src]

impl From<KeyFlags> for SmallVec<[u8; 1]>[src]

impl Clone for KeyFlags[src]

impl Copy for KeyFlags[src]

impl Default for KeyFlags[src]

impl Eq for KeyFlags[src]

impl PartialEq<KeyFlags> for KeyFlags[src]

impl Debug for KeyFlags

impl<T> BitRange<T> for KeyFlags where
    u8: BitRange<T>, 

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Bit for T where
    T: BitRange<u8>, 
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

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

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