pub struct Decrypt<U, N>where
N: NonceSequence,{ /* private fields */ }Expand description
Middleware that encrypts data for transport.
This is the deserializer.
Implementations§
Trait Implementations§
Source§impl<T, U, N> Deserializer<T> for Decrypt<U, N>where
N: NonceSequence,
U: Deserializer<T>,
impl<T, U, N> Deserializer<T> for Decrypt<U, N>where
N: NonceSequence,
U: Deserializer<T>,
Source§type Error = DeserializeError<<U as Deserializer<T>>::Error>
type Error = DeserializeError<<U as Deserializer<T>>::Error>
The error returned by
Deserializer::deserialize().Source§fn deserialize(
&mut self,
buf: &mut [u8],
) -> Result<T, <Decrypt<U, N> as Deserializer<T>>::Error>
fn deserialize( &mut self, buf: &mut [u8], ) -> Result<T, <Decrypt<U, N> as Deserializer<T>>::Error>
Auto Trait Implementations§
impl<U, N> Freeze for Decrypt<U, N>
impl<U, N> RefUnwindSafe for Decrypt<U, N>where
U: RefUnwindSafe,
N: RefUnwindSafe,
impl<U, N> Send for Decrypt<U, N>
impl<U, N> Sync for Decrypt<U, N>
impl<U, N> Unpin for Decrypt<U, N>
impl<U, N> UnwindSafe for Decrypt<U, N>where
U: UnwindSafe,
N: UnwindSafe,
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