[][src]Struct sequoia_openpgp::packet::KeyFlags

pub struct KeyFlags { /* fields omitted */ }

Describes how a key may be used, and stores additional information.

Methods

impl KeyFlags[src]

pub fn new(bits: &[u8]) -> Self[src]

Creates a new instance from bits.

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

This key may be used to certify other keys.

pub fn set_certify(self, v: bool) -> Self[src]

Sets whether or not this key may be used to certify other keys.

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

This key may be used to sign data.

pub fn set_sign(self, v: bool) -> Self[src]

Sets whether or not this key may be used to sign data.

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

This key may be used to encrypt communications.

pub fn set_encrypt_for_transport(self, v: bool) -> Self[src]

Sets whether or not this key may be used to encrypt communications.

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

This key may be used to encrypt storage.

pub fn set_encrypt_at_rest(self, v: bool) -> Self[src]

Sets whether or not this key may be used to encrypt storage.

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

This key may be used for authentication.

pub fn set_authenticate(self, v: bool) -> Self[src]

Sets whether or not this key may be used for authentication.

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

The private component of this key may have been split using a secret-sharing mechanism.

pub fn set_split_key(self, v: bool) -> Self[src]

Sets whether or not the private component of this key may have been split using a secret-sharing mechanism.

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

The private component of this key may be in possession of more than one person.

pub fn set_group_key(self, v: bool) -> Self[src]

Sets whether or not the private component of this key may be in possession of more than one person.

Trait Implementations

impl Eq for KeyFlags[src]

impl PartialOrd<KeyFlags> for KeyFlags[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for KeyFlags[src]

impl PartialEq<KeyFlags> for KeyFlags[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for KeyFlags[src]

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

Performs copy-assignment from source. Read more

impl Debug for KeyFlags[src]

Auto Trait Implementations

impl Send for KeyFlags

impl Sync for KeyFlags

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.