[][src]Struct veriform::decoder::Decoder

pub struct Decoder<D: Digest> { /* fields omitted */ }

Veriform decoder.

This type contains message decoding state and also performs Verihash computation.

It's intended to be used in conjunction with the Message trait.

Implementations

impl<D> Decoder<D> where
    D: Digest
[src]

pub fn new() -> Self[src]

Initialize decoder

pub fn fill_digest(&mut self, output: &mut [u8]) -> Result<(), Error>[src]

Fill the provided slice with the digest of the message if it fits

Trait Implementations

impl<D, M> Decode<M> for Decoder<D> where
    D: Digest,
    M: Message
[src]

impl<D> Decode<i64> for Decoder<D> where
    D: Digest
[src]

impl<D> Decode<u64> for Decoder<D> where
    D: Digest
[src]

impl<D> DecodeRef<[u8]> for Decoder<D> where
    D: Digest
[src]

impl<D> DecodeRef<str> for Decoder<D> where
    D: Digest
[src]

impl<D, M> DecodeSeq<M, D> for Decoder<D> where
    D: Digest,
    M: Message
[src]

impl<D> DecodeSeq<i64, D> for Decoder<D> where
    D: Digest
[src]

impl<D> DecodeSeq<u64, D> for Decoder<D> where
    D: Digest
[src]

impl<D> Default for Decoder<D> where
    D: Digest
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for Decoder<D> where
    D: RefUnwindSafe,
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<D> Send for Decoder<D> where
    D: Send,
    <D as Digest>::OutputSize: ArrayLength<u8>, 

impl<D> Sync for Decoder<D> where
    D: Sync,
    <D as Digest>::OutputSize: ArrayLength<u8>, 

impl<D> Unpin for Decoder<D> where
    D: Unpin,
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin

impl<D> UnwindSafe for Decoder<D> where
    D: UnwindSafe,
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: 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> Same<T> for T

type Output = T

Should always be Self

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.