pub struct MsgFwd {
pub sender_id: Option<u16>,
pub source: u8,
pub protocol: u8,
pub fwd_payload: Vec<u8>,
}
Expand description
Wrapper for FWD a separate stream of information over SBP
This message provides the ability to forward messages over SBP. This may take the form of wrapping up SBP messages received by Piksi for logging purposes or wrapping another protocol with SBP.
The source identifier indicates from what interface a forwarded stream derived. The protocol identifier identifies what the expected protocol the forwarded msg contains. Protocol 0 represents SBP and the remaining values are implementation defined.
Fields
sender_id: Option<u16>
The message sender_id
source: u8
source identifier
protocol: u8
protocol identifier
fwd_payload: Vec<u8>
variable length wrapped binary message
Trait Implementations
sourceimpl ConcreteMessage for MsgFwd
impl ConcreteMessage for MsgFwd
sourceconst MESSAGE_TYPE: u16 = 1_026u16
const MESSAGE_TYPE: u16 = 1_026u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_FWD"
const MESSAGE_NAME: &'static str = "MSG_FWD"
The message name.
sourceimpl SbpMessage for MsgFwd
impl SbpMessage for MsgFwd
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 MsgFwd
impl Send for MsgFwd
impl Sync for MsgFwd
impl Unpin for MsgFwd
impl UnwindSafe for MsgFwd
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