pub struct HashHeader { /* private fields */ }Expand description
Header for the hash values of the dumped data stream. This header is part of the main header and contains 0 or more hash values of the dumped data.\
Implementations
sourceimpl HashHeader
impl HashHeader
Trait Implementations
sourceimpl Clone for HashHeader
impl Clone for HashHeader
sourcefn clone(&self) -> HashHeader
fn clone(&self) -> HashHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for HashHeader
impl Debug for HashHeader
sourceimpl HeaderCoding for HashHeader
impl HeaderCoding for HashHeader
type Item = HashHeader
type Item = HashHeader
the return value for decode_content(), decode_directly(), decode_for_key();
sourcefn identifier() -> u32
fn identifier() -> u32
returns the identifier (=Magic bytes) of the header.
sourcefn encode_header(&self) -> Vec<u8>
fn encode_header(&self) -> Vec<u8>
encodes the header.
sourcefn encode_directly(&self) -> Vec<u8>
fn encode_directly(&self) -> Vec<u8>
encodes the (header) value/object directly (= without key).
sourcefn encode_for_key<K: Into<String>>(&self, key: K) -> Vec<u8>
fn encode_for_key<K: Into<String>>(&self, key: K) -> Vec<u8>
encodes a key to the (header) value/object.
sourcefn decode_content(data: Vec<u8>) -> Result<HashHeader>
fn decode_content(data: Vec<u8>) -> Result<HashHeader>
decodes the content of the header.
sourcefn header_size(&self) -> usize
fn header_size(&self) -> usize
returns the size of the encoded header (in bytes)
sourcefn decode_header_length<R: Read>(data: &mut R) -> Result<u64>
fn decode_header_length<R: Read>(data: &mut R) -> Result<u64>
decodes the length of the header.
sourcefn check_identifier<R: Read>(data: &mut R) -> bool
fn check_identifier<R: Read>(data: &mut R) -> bool
checks if the read identifier is valid for this header.
Auto Trait Implementations
impl RefUnwindSafe for HashHeader
impl Send for HashHeader
impl Sync for HashHeader
impl Unpin for HashHeader
impl UnwindSafe for HashHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more