Struct canadensis_data_types::uavcan::metatransport::ethernet::frame_0_1::Frame [−][src]
pub struct Frame {
pub destination: [u8; 6],
pub source: [u8; 6],
pub ethertype: EtherType,
pub payload: Vec<u8, 9216>,
}
Expand description
uavcan.metatransport.ethernet.Frame.0.1
Size ranges from 16 to 9232 bytes
Fields
destination: [u8; 6]
saturated uint8[6]
Always aligned Size 48 bits
source: [u8; 6]
saturated uint8[6]
Always aligned Size 48 bits
ethertype: EtherType
uavcan.metatransport.ethernet.EtherType.0.1
Always aligned Size 16 bits
payload: Vec<u8, 9216>
saturated uint8[<=9216]
Always aligned Size ranges from 0 to 73728 bits
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