pub trait NewStream<A>: StreamPrimitive<A>{
// Required method
fn from_aead(aead: A, nonce: &Nonce<A, Self>) -> Self;
// Provided method
fn new(key: &Key<A>, nonce: &Nonce<A, Self>) -> Self
where A: KeyInit,
Self: Sized { ... }
}Expand description
Create a new STREAM from the provided AEAD.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".