[−][src]Struct ages_prs::PrsEncoder
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]
ⓘImportant traits for PrsEncoder<W, V>
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]
W: Debug,
impl<W: Write, V: Variant> Drop for PrsEncoder<W, V>
[src]
impl<W: Write, V: Variant> Write for PrsEncoder<W, V>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize, Error>
1.36.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl<W, V> RefUnwindSafe for PrsEncoder<W, V> where
V: RefUnwindSafe,
W: RefUnwindSafe,
V: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, V> Send for PrsEncoder<W, V> where
V: Send,
W: Send,
V: Send,
W: Send,
impl<W, V> Sync for PrsEncoder<W, V> where
V: Sync,
W: Sync,
V: Sync,
W: Sync,
impl<W, V> Unpin for PrsEncoder<W, V> where
V: Unpin,
W: Unpin,
V: Unpin,
W: Unpin,
impl<W, V> UnwindSafe for PrsEncoder<W, V> where
V: UnwindSafe,
W: UnwindSafe,
V: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,