[][src]Enum tink_core::Primitive

pub enum Primitive {
    Aead(Box<dyn Aead>),
    DeterministicAead(Box<dyn DeterministicAead>),
    HybridDecrypt(Box<dyn HybridDecrypt>),
    HybridEncrypt(Box<dyn HybridEncrypt>),
    Mac(Box<dyn Mac>),
    Prf(Box<dyn Prf>),
    Signer(Box<dyn Signer>),
    StreamingAead(Box<dyn StreamingAead>),
    Verifier(Box<dyn Verifier>),
}

The primitives available in Tink.

Variants

Aead(Box<dyn Aead>)
DeterministicAead(Box<dyn DeterministicAead>)
HybridDecrypt(Box<dyn HybridDecrypt>)
HybridEncrypt(Box<dyn HybridEncrypt>)
Mac(Box<dyn Mac>)
Prf(Box<dyn Prf>)
Signer(Box<dyn Signer>)
StreamingAead(Box<dyn StreamingAead>)
Verifier(Box<dyn Verifier>)

Trait Implementations

impl Clone for Primitive[src]

Manual implementation of the Clone trait, which makes use of the trait bounds on the individual primitive types; specifically that they provide a box_clone() method.

impl From<Primitive> for Box<dyn Aead>[src]

impl From<Primitive> for Box<dyn DeterministicAead>[src]

impl From<Primitive> for Box<dyn HybridDecrypt>[src]

impl From<Primitive> for Box<dyn HybridEncrypt>[src]

impl From<Primitive> for Box<dyn Mac>[src]

impl From<Primitive> for Box<dyn Prf>[src]

impl From<Primitive> for Box<dyn Signer>[src]

impl From<Primitive> for Box<dyn StreamingAead>[src]

impl From<Primitive> for Box<dyn Verifier>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Primitive

impl !Send for Primitive

impl !Sync for Primitive

impl Unpin for Primitive

impl !UnwindSafe for Primitive

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,