[][src]Struct vapor_archive::write::hash_writer::HashWriter

pub struct HashWriter<'w, W: Write + Seek + 'w> { /* fields omitted */ }

HashWriter struct

Wraps another writer and recors the written bytes to a BLAKE2S hasher, whose hash you can retrieve later

Implementations

impl<'w, W: Write + Seek + 'w> HashWriter<'w, W>[src]

pub fn new(writer: &'w mut W) -> Self[src]

Creates a new instance, wrapping the given writer

pub fn get_hash(&mut self) -> [u8; 32][src]

Retrieves the BLAKE2S hash as a 32B array, resetting the hasher

Trait Implementations

impl<'w, W: Write + Seek + 'w> Seek for HashWriter<'w, W>[src]

impl<'w, W: Write + Seek + 'w> Write for HashWriter<'w, W>[src]

Auto Trait Implementations

impl<'w, W> RefUnwindSafe for HashWriter<'w, W> where
    W: RefUnwindSafe

impl<'w, W> Send for HashWriter<'w, W> where
    W: Send

impl<'w, W> Sync for HashWriter<'w, W> where
    W: Sync

impl<'w, W> Unpin for HashWriter<'w, W>

impl<'w, W> !UnwindSafe for HashWriter<'w, W>

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.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized