[][src]Trait streamsha::traits::Resumable

pub trait Resumable: Sized {
    fn pause(self) -> HashState;
fn resume(hash_state: HashState) -> Result<Self, Error>; }

Trait for pausing and resuming the hashing state.

Required methods

fn pause(self) -> HashState

Returns the current hash state.

NOTE: It returns raw data of block if the block is incomplete.

fn resume(hash_state: HashState) -> Result<Self, Error>

Recreate new instance from given hash state.

Loading content...

Implementors

impl Resumable for Sha1[src]

impl Resumable for Sha256[src]

impl Resumable for Sha512[src]

Loading content...