Enum pgp::crypto::aead::AeadAlgorithm
source · #[repr(u8)]pub enum AeadAlgorithm {
None = 0,
Eax = 1,
Ocb = 2,
}
Expand description
Available AEAD algorithms.
Variants§
Trait Implementations§
source§impl Clone for AeadAlgorithm
impl Clone for AeadAlgorithm
source§fn clone(&self) -> AeadAlgorithm
fn clone(&self) -> AeadAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AeadAlgorithm
impl Debug for AeadAlgorithm
source§impl Default for AeadAlgorithm
impl Default for AeadAlgorithm
source§fn default() -> AeadAlgorithm
fn default() -> AeadAlgorithm
Returns the “default value” for a type. Read more
source§impl PartialEq for AeadAlgorithm
impl PartialEq for AeadAlgorithm
source§fn eq(&self, other: &AeadAlgorithm) -> bool
fn eq(&self, other: &AeadAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for AeadAlgorithm
impl TryFrom<u8> for AeadAlgorithm
§type Error = TryFromPrimitiveError<AeadAlgorithm>
type Error = TryFromPrimitiveError<AeadAlgorithm>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for AeadAlgorithm
impl TryFromPrimitive for AeadAlgorithm
type Primitive = u8
type Error = TryFromPrimitiveError<AeadAlgorithm>
const NAME: &'static str = "AeadAlgorithm"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AeadAlgorithm
impl Eq for AeadAlgorithm
impl StructuralPartialEq for AeadAlgorithm
Auto Trait Implementations§
impl Freeze for AeadAlgorithm
impl RefUnwindSafe for AeadAlgorithm
impl Send for AeadAlgorithm
impl Sync for AeadAlgorithm
impl Unpin for AeadAlgorithm
impl UnwindSafe for AeadAlgorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more