pub struct DirectionalKeys {
pub packet: PacketKey,
pub header: HeaderProtectionKey,
}Expand description
Packet and header protection for one direction.
Fields§
§packet: PacketKey§header: HeaderProtectionKeyImplementations§
Source§impl DirectionalKeys
impl DirectionalKeys
Sourcepub fn new(suite: CipherSuite, version: u32, secret: &[u8]) -> DirectionalKeys
pub fn new(suite: CipherSuite, version: u32, secret: &[u8]) -> DirectionalKeys
Packet and header protection keys derived from a traffic secret.
Trait Implementations§
Source§impl Clone for DirectionalKeys
impl Clone for DirectionalKeys
Auto Trait Implementations§
impl Forget for DirectionalKeys
impl Freeze for DirectionalKeys
impl Move for DirectionalKeys
impl RefUnwindSafe for DirectionalKeys
impl Send for DirectionalKeys
impl Sync for DirectionalKeys
impl Unpin for DirectionalKeys
impl UnsafeUnpin for DirectionalKeys
impl UnwindSafe for DirectionalKeys
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