Struct box_stream::BoxWriter [] [src]

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

Wraps a writer, encrypting all writes.

Methods

impl<W> BoxWriter<W>
[src]

[src]

Create a new writer, wrapping inner and using key and nonce for encryption.

[src]

Gets a reference to the underlying writer.

[src]

Gets a mutable reference to the underlying writer.

It is inadvisable to directly write to the underlying writer.

[src]

Unwraps this BoxWriter, returning the underlying writer.

Trait Implementations

impl<W: AsyncWrite> AsyncWrite for BoxWriter<W>
[src]

[src]

Attempt to write bytes from buf into the object. Read more

[src]

Attempt to flush the object, ensuring that any buffered data reach their destination. Read more

[src]

Attempt to close the object. Read more

[src]

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

Auto Trait Implementations

impl<W> Send for BoxWriter<W> where
    W: Send

impl<W> Sync for BoxWriter<W> where
    W: Sync