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>),
}
Expand description
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
sourceimpl Clone for Primitive
impl Clone for Primitive
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.
sourceimpl From<Primitive> for Box<dyn DeterministicAead>
impl From<Primitive> for Box<dyn DeterministicAead>
sourcefn from(p: Primitive) -> Box<dyn DeterministicAead>
fn from(p: Primitive) -> Box<dyn DeterministicAead>
Converts to this type from the input type.
sourceimpl From<Primitive> for Box<dyn HybridDecrypt>
impl From<Primitive> for Box<dyn HybridDecrypt>
sourcefn from(p: Primitive) -> Box<dyn HybridDecrypt>
fn from(p: Primitive) -> Box<dyn HybridDecrypt>
Converts to this type from the input type.
sourceimpl From<Primitive> for Box<dyn HybridEncrypt>
impl From<Primitive> for Box<dyn HybridEncrypt>
sourcefn from(p: Primitive) -> Box<dyn HybridEncrypt>
fn from(p: Primitive) -> Box<dyn HybridEncrypt>
Converts to this type from the input type.
sourceimpl From<Primitive> for Box<dyn StreamingAead>
impl From<Primitive> for Box<dyn StreamingAead>
sourcefn from(p: Primitive) -> Box<dyn StreamingAead>
fn from(p: Primitive) -> Box<dyn StreamingAead>
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more