Struct self_encryption::StreamSelfDecryptor
source · pub struct StreamSelfDecryptor { /* private fields */ }
Expand description
The streaming decryptor to carry out the decryption on fly, chunk by chunk.
Implementations§
source§impl StreamSelfDecryptor
impl StreamSelfDecryptor
sourcepub fn decrypt_to_file(
file_path: Box<PathBuf>,
data_map: &DataMap
) -> Result<Self>
pub fn decrypt_to_file( file_path: Box<PathBuf>, data_map: &DataMap ) -> Result<Self>
For decryption, return with an intialized streaming decryptor
sourcepub fn next_encrypted(
&mut self,
encrypted_chunk: EncryptedChunk
) -> Result<bool>
pub fn next_encrypted( &mut self, encrypted_chunk: EncryptedChunk ) -> Result<bool>
Return true if all encrypted chunk got received and file decrypted.
Auto Trait Implementations§
impl Freeze for StreamSelfDecryptor
impl RefUnwindSafe for StreamSelfDecryptor
impl Send for StreamSelfDecryptor
impl Sync for StreamSelfDecryptor
impl Unpin for StreamSelfDecryptor
impl UnwindSafe for StreamSelfDecryptor
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more