pub struct Decrypter;
Implementations§
Source§impl Decrypter
impl Decrypter
Sourcepub fn decrypt<CipherType>(
input: impl DecrypterPayload,
provider: impl DecryptProvider<Cipher = CipherType>,
cipher: CipherType,
) -> Result<DecryptionResult>
pub fn decrypt<CipherType>( input: impl DecrypterPayload, provider: impl DecryptProvider<Cipher = CipherType>, cipher: CipherType, ) -> Result<DecryptionResult>
Uses impl trait to accept any type that implements DecrypterPayload and converts it to DecryptData, passing this to the provider to perform the decryption
Auto Trait Implementations§
impl Freeze for Decrypter
impl RefUnwindSafe for Decrypter
impl Send for Decrypter
impl Sync for Decrypter
impl Unpin for Decrypter
impl UnwindSafe for Decrypter
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