pub struct ContextData {
pub state: ContextState,
pub completed_bytes: u64,
pub algorithm: String,
pub num_pending: usize,
pub pending: Vec<u8>,
}
Expand description
Structure to store and restore Context
Fields§
§state: ContextState
Context state
completed_bytes: u64
Completed bytes
algorithm: String
Digest algorithm name = AlgorithmID
num_pending: usize
Number of pending bytes
pending: Vec<u8>
Pending bytes
Trait Implementations§
Source§impl Clone for ContextData
impl Clone for ContextData
Source§fn clone(&self) -> ContextData
fn clone(&self) -> ContextData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ContextData
impl RefUnwindSafe for ContextData
impl Send for ContextData
impl Sync for ContextData
impl Unpin for ContextData
impl UnwindSafe for ContextData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more