pub struct KeyPair<T> {
pub local: T,
pub remote: T,
}展开描述
用于双向通信的一对密钥
字段§
§local: T用于加密数据的密钥
remote: T用于解密数据的密钥
自动 trait 实现§
impl<T> Freeze for KeyPair<T>where
T: Freeze,
impl<T> RefUnwindSafe for KeyPair<T>where
T: RefUnwindSafe,
impl<T> Send for KeyPair<T>where
T: Send,
impl<T> Sync for KeyPair<T>where
T: Sync,
impl<T> Unpin for KeyPair<T>where
T: Unpin,
impl<T> UnsafeUnpin for KeyPair<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for KeyPair<T>where
T: UnwindSafe,
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息