[][src]Struct ages_prs::PrsEncoder

pub struct PrsEncoder<W: Write, V: Variant> { /* fields omitted */ }

An IO sink for compressing and encoding a stream to PRS.

Methods

impl<W: Write, V: Variant> PrsEncoder<W, V>[src]

Important traits for PrsEncoder<W, V>
pub fn new(inner: W) -> PrsEncoder<W, V>[src]

Wraps a Write sink, initializing the encoder state

pub fn into_inner(self) -> Result<W, IntoInnerError<W>>[src]

Finish encoding the PRS stream, returning the inner Write.

Errors will leave the PRS stream in an incomplete state; the E type is only present to capture the inner Write for inspection. There is no way to recover the broken PRS stream if this operation fails.

Trait Implementations

impl<W: Write, V: Variant> Debug for PrsEncoder<W, V> where
    W: Debug
[src]

impl<W: Write, V: Variant> Drop for PrsEncoder<W, V>[src]

impl<W: Write, V: Variant> Write for PrsEncoder<W, V>[src]

Auto Trait Implementations

impl<W, V> RefUnwindSafe for PrsEncoder<W, V> where
    V: RefUnwindSafe,
    W: RefUnwindSafe

impl<W, V> Send for PrsEncoder<W, V> where
    V: Send,
    W: Send

impl<W, V> Sync for PrsEncoder<W, V> where
    V: Sync,
    W: Sync

impl<W, V> Unpin for PrsEncoder<W, V> where
    V: Unpin,
    W: Unpin

impl<W, V> UnwindSafe for PrsEncoder<W, V> where
    V: UnwindSafe,
    W: UnwindSafe

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.