[][src]Struct ssb_boxstream::BoxWriter

pub struct BoxWriter<W> { /* fields omitted */ }

Methods

impl<W> BoxWriter<W> where
    W: AsyncWrite + Unpin + 'static, 
[src]

pub fn new(w: W, key: Key, noncegen: NonceGen) -> BoxWriter<W>[src]

pub fn is_closed(&self) -> bool[src]

pub fn into_inner(self) -> W[src]

Trait Implementations

impl<W> AsyncWrite for BoxWriter<W> where
    W: AsyncWrite + Unpin + 'static, 
[src]

fn poll_write_vectored(
    self: Pin<&mut Self>,
    cx: &mut Context,
    bufs: &[IoSlice]
) -> Poll<Result<usize, Error>>
[src]

Attempt to write bytes from bufs into the object using vectored IO operations. Read more

Auto Trait Implementations

impl<W> !Send for BoxWriter<W>

impl<W> !Sync for BoxWriter<W>

Blanket Implementations

impl<T> From<T> for T[src]

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

fn flush(&mut self) -> Flush<Self> where
    Self: Unpin
[src]

Creates a future which will entirely flush this AsyncWrite. Read more

fn close(&mut self) -> Close<Self> where
    Self: Unpin
[src]

Creates a future which will entirely close this AsyncWrite.

fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self> where
    Self: Unpin
[src]

Write data into this object. Read more