Struct gazetta_core::util::StreamHasher
[−]
[src]
pub struct StreamHasher<W, H> { /* fields omitted */ }
Methods
impl<W, H> StreamHasher<W, H> where
H: Hasher,
W: Write,
[src]
H: Hasher,
W: Write,
pub fn new(inner: W) -> Self where
H: Default,
[src]
H: Default,
pub fn with_hasher(inner: W, hash: H) -> Self
[src]
pub fn finish(&self) -> u64
[src]
Trait Implementations
impl<W, H> Write for StreamHasher<W, H> where
W: Write,
H: Hasher,
[src]
W: Write,
H: Hasher,
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
[src]
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
ⓘImportant traits for &'a mut Rfn by_ref(&mut self) -> &mut Self
1.0.0[src]
ⓘImportant traits for &'a mut R
Creates a "by reference" adaptor for this instance of Write
. Read more
Auto Trait Implementations
impl<W, H> Send for StreamHasher<W, H> where
H: Send,
W: Send,
H: Send,
W: Send,
impl<W, H> Sync for StreamHasher<W, H> where
H: Sync,
W: Sync,
H: Sync,
W: Sync,