[−][src]Struct self_encryption::ChunkDetails
Holds pre- and post-encryption hashes as well as the original (pre-compression) size for a given chunk.
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]
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 PartialEq<ChunkDetails> for ChunkDetails
[src]
fn eq(&self, other: &ChunkDetails) -> bool
[src]
fn ne(&self, other: &ChunkDetails) -> bool
[src]
impl Clone for ChunkDetails
[src]
fn clone(&self) -> ChunkDetails
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for ChunkDetails
[src]
fn cmp(&self, other: &ChunkDetails) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Default for ChunkDetails
[src]
fn default() -> ChunkDetails
[src]
impl Eq for ChunkDetails
[src]
impl PartialOrd<ChunkDetails> for ChunkDetails
[src]
fn partial_cmp(&self, other: &ChunkDetails) -> Option<Ordering>
[src]
fn lt(&self, other: &ChunkDetails) -> bool
[src]
fn le(&self, other: &ChunkDetails) -> bool
[src]
fn gt(&self, other: &ChunkDetails) -> bool
[src]
fn ge(&self, other: &ChunkDetails) -> bool
[src]
impl Debug for ChunkDetails
[src]
impl Serialize for ChunkDetails
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ChunkDetails
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ChunkDetails
impl Sync for ChunkDetails
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,