[][src]Struct sequoia_openpgp::policy::NullPolicy

pub struct NullPolicy {}

The Null Policy.

Danger, here be dragons.

This policy imposes no additional policy, i.e., accepts everything. This includes the MD5 hash algorithm, and SED packets.

Methods

impl NullPolicy[src]

pub const fn new() -> Self[src]

Instantiates a new NullPolicy.

Trait Implementations

impl Policy for NullPolicy[src]

fn signature(&self, _sig: &Signature) -> Result<()>[src]

Returns an error if the signature violates the policy. Read more

fn key(&self, _ka: &ValidErasedKeyAmalgamation<PublicParts>) -> Result<()>[src]

Returns an error if the key violates the policy. Read more

fn symmetric_algorithm(&self, _algo: SymmetricAlgorithm) -> Result<()>[src]

Returns an error if the symmetric encryption algorithm violates the policy. Read more

fn aead_algorithm(&self, _algo: AEADAlgorithm) -> Result<()>[src]

Returns an error if the AEAD mode violates the policy. Read more

fn packet(&self, _packet: &Packet) -> Result<()>[src]

Returns an error if the packet violates the policy. Read more

impl Debug for NullPolicy[src]

Auto Trait Implementations

impl Send for NullPolicy

impl Sync for NullPolicy

Blanket Implementations

impl<T> From for T[src]

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

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.

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