Struct sbp::messages::user::msg_user_data::MsgUserData
source · [−]Expand description
User data
This message can contain any application specific user data up to a maximum length of 255 bytes per message.
Fields
sender_id: Option<u16>
The message sender_id
contents: Vec<u8>
User data payload
Trait Implementations
sourceimpl Clone for MsgUserData
impl Clone for MsgUserData
sourcefn clone(&self) -> MsgUserData
fn clone(&self) -> MsgUserData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgUserData
impl ConcreteMessage for MsgUserData
sourceconst MESSAGE_TYPE: u16 = 2_048u16
const MESSAGE_TYPE: u16 = 2_048u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_USER_DATA"
const MESSAGE_NAME: &'static str = "MSG_USER_DATA"
The message name.
sourceimpl Debug for MsgUserData
impl Debug for MsgUserData
sourceimpl From<MsgUserData> for Sbp
impl From<MsgUserData> for Sbp
sourcefn from(msg: MsgUserData) -> Self
fn from(msg: MsgUserData) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgUserData
impl SbpMessage for MsgUserData
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgUserData
impl Send for MsgUserData
impl Sync for MsgUserData
impl Unpin for MsgUserData
impl UnwindSafe for MsgUserData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more