Struct domain::utils::base64::Decoder[][src]

pub struct Decoder { /* fields omitted */ }

A base 64 decoder.

This type keeps all the state for decoding a sequence of characters representing data encoded in base 32. Upon success, the decoder returns the decoded data in a bytes::Bytes value.

Implementations

impl Decoder[src]

pub fn new() -> Self[src]

Creates a new empty decoder.

pub fn finalize(self) -> Result<Bytes, DecodeError>[src]

Finalizes decoding and returns the decoded data.

pub fn push(&mut self, ch: char) -> Result<(), DecodeError>[src]

Decodes one more character of data.

Returns an error as soon as the encoded data is determined to be illegal. It is okay to push more data after the first error. The method will just keep returned errors.

Trait Implementations

impl Default for Decoder[src]

Auto Trait Implementations

impl RefUnwindSafe for Decoder

impl Send for Decoder

impl Sync for Decoder

impl Unpin for Decoder

impl UnwindSafe for Decoder

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<Source, Target> OctetsInto<Target> for Source where
    Target: OctetsFrom<Source>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,