pub struct CustomMessage {
pub type_id: u16,
pub payload: Vec<u8>,
}Expand description
Custom message for application-defined protocol extensions (type 9+).
Fields§
§type_id: u16Message type ID (9+).
payload: Vec<u8>Raw payload bytes.
Implementations§
Source§impl CustomMessage
impl CustomMessage
Trait Implementations§
Source§impl Clone for CustomMessage
impl Clone for CustomMessage
Source§fn clone(&self) -> CustomMessage
fn clone(&self) -> CustomMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CustomMessage
impl RefUnwindSafe for CustomMessage
impl Send for CustomMessage
impl Sync for CustomMessage
impl Unpin for CustomMessage
impl UnsafeUnpin for CustomMessage
impl UnwindSafe for CustomMessage
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