pub struct Aes256GcmEnCodec { /* private fields */ }Implementations§
Source§impl Aes256GcmEnCodec
impl Aes256GcmEnCodec
Sourcepub fn try_new_data_v2(key: &[u8], prefix: [u8; 4]) -> Result<Self, Unspecified>
pub fn try_new_data_v2(key: &[u8], prefix: [u8; 4]) -> Result<Self, Unspecified>
Construct a negotiated data-v2 codec with a directional nonce prefix and a checked 64-bit counter. Legacy constructors retain their 32-bit limit. Peers sharing a key must use disjoint prefixes for opposite directions.
pub fn try_new(key: &[u8]) -> Result<Self, Unspecified>
pub fn new(key: UnboundKey) -> Self
Trait Implementations§
Source§impl Debug for Aes256GcmEnCodec
impl Debug for Aes256GcmEnCodec
Auto Trait Implementations§
impl Freeze for Aes256GcmEnCodec
impl RefUnwindSafe for Aes256GcmEnCodec
impl Send for Aes256GcmEnCodec
impl Sync for Aes256GcmEnCodec
impl Unpin for Aes256GcmEnCodec
impl UnsafeUnpin for Aes256GcmEnCodec
impl UnwindSafe for Aes256GcmEnCodec
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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