[][src]Struct zstd::stream::write::AutoFinishEncoder

pub struct AutoFinishEncoder<W: Write> { /* fields omitted */ }

A wrapper around an Encoder<W> that finishes the stream on drop.

Implementations

impl<W: Write> AutoFinishEncoder<W>[src]

pub fn get_ref(&self) -> &W[src]

Acquires a reference to the underlying writer.

pub fn get_mut(&mut self) -> &mut W[src]

Acquires a mutable reference to the underlying writer.

Note that mutation of the writer may result in surprising results if this encoder is continued to be used.

Trait Implementations

impl<W: Write> Drop for AutoFinishEncoder<W>[src]

impl<W: Write> Write for AutoFinishEncoder<W>[src]

Auto Trait Implementations

impl<W> !RefUnwindSafe for AutoFinishEncoder<W>

impl<W> !Send for AutoFinishEncoder<W>

impl<W> !Sync for AutoFinishEncoder<W>

impl<W> Unpin for AutoFinishEncoder<W> where
    W: Unpin

impl<W> !UnwindSafe for AutoFinishEncoder<W>

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, 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.