Struct ssb_box_stream::Encrypt[][src]

pub struct Encrypt<Writer: AsyncWrite> { /* fields omitted */ }

A [Sink] for Vec<u8> that encrypts data and sends it to the underlying Writer

Implementations

impl<Writer: AsyncWrite> Encrypt<Writer>[src]

pub fn new(writer: Writer, params: Params) -> Self[src]

Trait Implementations

impl<Writer: AsyncWrite> Sink<Vec<u8, Global>> for Encrypt<Writer>[src]

type Error = Error

The type of value produced by the sink when an error occurs.

impl<'pin, Writer: AsyncWrite> Unpin for Encrypt<Writer> where
    __Encrypt<'pin, Writer>: Unpin
[src]

Auto Trait Implementations

impl<Writer> RefUnwindSafe for Encrypt<Writer> where
    Writer: RefUnwindSafe
[src]

impl<Writer> Send for Encrypt<Writer> where
    Writer: Send
[src]

impl<Writer> Sync for Encrypt<Writer> where
    Writer: Sync
[src]

impl<Writer> UnwindSafe for Encrypt<Writer> where
    Writer: UnwindSafe
[src]

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, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized

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.