Struct canadensis_data_types::uavcan::internet::udp::outgoing_packet_0_2::OutgoingPacket [−][src]
pub struct OutgoingPacket {
pub session_id: u16,
pub destination_port: u16,
pub destination_address: Vec<u8, 45>,
pub use_masquerading: bool,
pub use_dtls: bool,
pub payload: Vec<u8, 508>,
}
Expand description
uavcan.internet.udp.OutgoingPacket.0.2
Size ranges from 8 to 561 bytes
Fields
session_id: u16
saturated uint16
Always aligned Size 16 bits
destination_port: u16
saturated uint16
Always aligned Size 16 bits
destination_address: Vec<u8, 45>
saturated uint8[<=45]
Always aligned Size ranges from 0 to 360 bits
use_masquerading: bool
saturated bool
Always aligned Size 1 bits
use_dtls: bool
saturated bool
Not always aligned Size 1 bits
payload: Vec<u8, 508>
saturated uint8[<=508]
Always aligned Size ranges from 0 to 4064 bits
Implementations
Trait Implementations
The sealed or delimited property of this type
fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError> where
Self: Sized,
fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError> where
Self: Sized,
Deserializes a value and returns it
Deserializes a value from a slice of bytes and returns it Read more
A convenience function that creates a cursor around the provided bytes and calls
deserialize
Read more