pub struct ChaCha20Poly1305SessionManager<V: Serialize + DeserializeOwned> { /* private fields */ }
Expand description
Uses the ChaCha20Poly1305 AEAD to provide signed, encrypted sessions.
Implementations§
Source§impl<V: Serialize + DeserializeOwned> ChaCha20Poly1305SessionManager<V>
impl<V: Serialize + DeserializeOwned> ChaCha20Poly1305SessionManager<V>
Trait Implementations§
Source§impl<V: Serialize + DeserializeOwned + Send + Sync> SessionManager<V> for ChaCha20Poly1305SessionManager<V>
impl<V: Serialize + DeserializeOwned + Send + Sync> SessionManager<V> for ChaCha20Poly1305SessionManager<V>
Source§fn is_encrypted(&self) -> bool
fn is_encrypted(&self) -> bool
Whether or not the sessions are encrypted: true
Source§fn deserialize(&self, bytes: &[u8]) -> Result<Session<V>, SessionError>
fn deserialize(&self, bytes: &[u8]) -> Result<Session<V>, SessionError>
Given a slice of bytes perform the following options to convert it into a
Session
: Read moreAuto Trait Implementations§
impl<V> Freeze for ChaCha20Poly1305SessionManager<V>
impl<V> RefUnwindSafe for ChaCha20Poly1305SessionManager<V>where
V: RefUnwindSafe,
impl<V> Send for ChaCha20Poly1305SessionManager<V>where
V: Send,
impl<V> Sync for ChaCha20Poly1305SessionManager<V>where
V: Sync,
impl<V> Unpin for ChaCha20Poly1305SessionManager<V>where
V: Unpin,
impl<V> UnwindSafe for ChaCha20Poly1305SessionManager<V>where
V: 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