struct AsyncCrypto {
dialect: Option<u16>,
signing_key: Option<[u8; 16]>,
signing_algo: u16,
enc_keys: Option<([u8; 32], [u8; 32])>,
cipher: Option<u16>,
session_id: u64,
encrypt: bool,
signed: bool,
}Expand description
Per-session crypto material an async completion needs to sign/seal a frame off the request path (snapshotted at request time so the background task never borrows the connection).
Fields§
§dialect: Option<u16>§signing_key: Option<[u8; 16]>§signing_algo: u16§enc_keys: Option<([u8; 32], [u8; 32])>§cipher: Option<u16>§session_id: u64§encrypt: bool§signed: boolImplementations§
Trait Implementations§
Source§impl Clone for AsyncCrypto
impl Clone for AsyncCrypto
Source§fn clone(&self) -> AsyncCrypto
fn clone(&self) -> AsyncCrypto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AsyncCrypto
impl RefUnwindSafe for AsyncCrypto
impl Send for AsyncCrypto
impl Sync for AsyncCrypto
impl Unpin for AsyncCrypto
impl UnsafeUnpin for AsyncCrypto
impl UnwindSafe for AsyncCrypto
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