pub struct AsyncFileStreamCipher { /* private fields */ }Expand description
Async file stream cipher for processing large files
Implementations§
Source§impl AsyncFileStreamCipher
impl AsyncFileStreamCipher
Sourcepub async fn encrypt_file_async<P: AsRef<Path>>(
&self,
input_path: P,
output_path: P,
public_key: &PublicKey,
progress: Option<AsyncProgressCallback>,
) -> Result<u64>
pub async fn encrypt_file_async<P: AsRef<Path>>( &self, input_path: P, output_path: P, public_key: &PublicKey, progress: Option<AsyncProgressCallback>, ) -> Result<u64>
Sourcepub async fn decrypt_file_async<P: AsRef<Path>>(
&self,
input_path: P,
output_path: P,
private_key: &PrivateKey,
progress: Option<AsyncProgressCallback>,
) -> Result<u64>
pub async fn decrypt_file_async<P: AsRef<Path>>( &self, input_path: P, output_path: P, private_key: &PrivateKey, progress: Option<AsyncProgressCallback>, ) -> Result<u64>
Sourcepub fn cipher(&self) -> &AsyncHybridCipher
pub fn cipher(&self) -> &AsyncHybridCipher
Get the underlying async cipher
Trait Implementations§
Source§impl Debug for AsyncFileStreamCipher
impl Debug for AsyncFileStreamCipher
Auto Trait Implementations§
impl Freeze for AsyncFileStreamCipher
impl RefUnwindSafe for AsyncFileStreamCipher
impl Send for AsyncFileStreamCipher
impl Sync for AsyncFileStreamCipher
impl Unpin for AsyncFileStreamCipher
impl UnsafeUnpin for AsyncFileStreamCipher
impl UnwindSafe for AsyncFileStreamCipher
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