Struct self_encryption::ChunkDetails [−][src]
pub struct ChunkDetails { pub chunk_num: usize, pub hash: Vec<u8>, pub pre_hash: Vec<u8>, pub source_size: usize, }
Holds pre- and post-encryption hashes as well as the original (pre-compression) size for a given chunk.
Fields
chunk_num: usize
Index number (starts at 0)
hash: Vec<u8>
Post-encryption hash of chunk
pre_hash: Vec<u8>
Pre-encryption hash of chunk
source_size: usize
Size before encryption (compression alters this as well as any possible padding depending on cipher used)
Implementations
impl ChunkDetails
[src]
impl ChunkDetails
[src]pub fn new() -> ChunkDetails
[src]
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]
impl Clone for ChunkDetails
[src]fn clone(&self) -> ChunkDetails
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChunkDetails
[src]
impl Debug for ChunkDetails
[src]impl Default for ChunkDetails
[src]
impl Default for ChunkDetails
[src]fn default() -> ChunkDetails
[src]
impl<'de> Deserialize<'de> for ChunkDetails
[src]
impl<'de> Deserialize<'de> for ChunkDetails
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ChunkDetails
[src]
impl Eq for ChunkDetails
[src]impl Ord for ChunkDetails
[src]
impl Ord for ChunkDetails
[src]impl PartialEq<ChunkDetails> for ChunkDetails
[src]
impl PartialEq<ChunkDetails> for ChunkDetails
[src]fn eq(&self, other: &ChunkDetails) -> bool
[src]
fn ne(&self, other: &ChunkDetails) -> bool
[src]
impl PartialOrd<ChunkDetails> for ChunkDetails
[src]
impl PartialOrd<ChunkDetails> for ChunkDetails
[src]fn partial_cmp(&self, other: &ChunkDetails) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for ChunkDetails
[src]
impl Serialize for ChunkDetails
[src]impl StructuralEq for ChunkDetails
[src]
impl StructuralEq for ChunkDetails
[src]impl StructuralPartialEq for ChunkDetails
[src]
impl StructuralPartialEq for ChunkDetails
[src]Auto Trait Implementations
impl RefUnwindSafe for ChunkDetails
impl RefUnwindSafe for ChunkDetails
impl Send for ChunkDetails
impl Send for ChunkDetails
impl Sync for ChunkDetails
impl Sync for ChunkDetails
impl Unpin for ChunkDetails
impl Unpin for ChunkDetails
impl UnwindSafe for ChunkDetails
impl UnwindSafe for ChunkDetails
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,