pub struct PlainMessage {
pub typ: ContentType,
pub version: ProtocolVersion,
pub payload: Payload<'static>,
}展开描述
已解密的 TLS 报文
This type owns all memory 用于 its interior parts. It can be decrypted 从 an OpaqueMessage 或 encrypted into an OpaqueMessage, 并 it 也 用 用于 joining 并 fragmenting.
字段§
§typ: ContentType§version: ProtocolVersion§payload: Payload<'static>实现§
Source§impl PlainMessage
impl PlainMessage
pub fn into_unencrypted_opaque(self) -> OutboundOpaqueMessage
pub fn borrow_inbound(&self) -> InboundPlainMessage<'_>
pub fn borrow_outbound(&self) -> OutboundPlainMessage<'_>
Trait 实现§
Source§impl Clone for PlainMessage
impl Clone for PlainMessage
Source§fn clone(&self) -> PlainMessage
fn clone(&self) -> PlainMessage
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息自动 Trait 实现§
impl Freeze for PlainMessage
impl RefUnwindSafe for PlainMessage
impl Send for PlainMessage
impl Sync for PlainMessage
impl Unpin for PlainMessage
impl UnsafeUnpin for PlainMessage
impl UnwindSafe for PlainMessage
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. 更多信息