pub struct DirectionalKeys {
pub header: Box<dyn HeaderProtectionKey>,
pub packet: Box<dyn PacketKey>,
}展开描述
Keys 用 到 communicate in 一个 single direction
字段§
§header: Box<dyn HeaderProtectionKey>Encrypts 或 decrypts 一个 packet’s headers
packet: Box<dyn PacketKey>Encrypts 或 decrypts the payload of 一个 packet
自动 Trait 实现§
impl Freeze 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 实现§
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 从 an owned value. 更多信息