Trait base64::chunked_encoder::Sink

source ·
pub trait Sink {
    type Error;

    // Required method
    fn write_encoded_bytes(&mut self, encoded: &[u8]) -> Result<(), Self::Error>;
}
Expand description

The output mechanism for ChunkedEncoder’s encoded bytes.

Required Associated Types§

Required Methods§

source

fn write_encoded_bytes(&mut self, encoded: &[u8]) -> Result<(), Self::Error>

Handle a chunk of encoded base64 data (as UTF-8 bytes)

Implementors§

source§

impl<'a> Sink for StringSink<'a>

§

type Error = ()

source§

impl<'a, 'b: 'a> Sink for FormatterSink<'a, 'b>

§

type Error = Error