Struct self_encryption::ChunkDetails
[−]
[src]
pub struct ChunkDetails { pub chunk_num: u32, pub hash: Vec<u8>, pub pre_hash: Vec<u8>, pub source_size: u64, }
Struct holds pre and post encryption hashes as well as original chunk size.
Fields
chunk_num: u32
Index number (starts at 0)
hash: Vec<u8>
Post encryption hash of chunk
pre_hash: Vec<u8>
Pre encryption hash of chunk
source_size: u64
size before encryption (compression alters this as well as any possible padding depending on cipher used)
Methods
impl ChunkDetails
[src]
fn new() -> ChunkDetails
Holds information required for successful recovery of a chunk, as well as for the encryption/decryption of it's two immediate successors, modulo the number of chunks in the corresponding DataMap.
Trait Implementations
impl Clone for ChunkDetails
[src]
fn clone(&self) -> ChunkDetails
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Ord for ChunkDetails
[src]
fn cmp(&self, __arg_0: &ChunkDetails) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for ChunkDetails
[src]
fn partial_cmp(&self, __arg_0: &ChunkDetails) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ChunkDetails) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ChunkDetails) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ChunkDetails) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ChunkDetails) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for ChunkDetails
[src]
impl PartialEq for ChunkDetails
[src]
fn eq(&self, __arg_0: &ChunkDetails) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ChunkDetails) -> bool
This method tests for !=
.