pub struct Frame {
pub message: Message,
pub body: Vec<u8>,
}Expand description
一个完整的协议帧:消息头加上可选的二进制 body。
Fields§
§message: Message帧头。
body: Vec<u8>帧 body,仅在载荷 raw: true 时非空。
Implementations§
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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