pub struct PacketTemplate {
pub destination_address: u16,
pub destination_mask: u16,
pub source_address: u16,
pub source_mask: u16,
pub command: u16,
pub fields: Vec<PacketTemplateField>,
}
Expand description
Contains information about a VBus packet.
Fields§
§destination_address: u16
The VBus address of the destination device.
destination_mask: u16
The mask applied to the VBus address of the destination device.
source_address: u16
The VBus address of the source device.
source_mask: u16
The mask applied to the VBus address of the source device.
command: u16
The VBus command of the packet.
fields: Vec<PacketTemplateField>
The list of fields contained in the frame data payload.
Trait Implementations§
Source§impl Clone for PacketTemplate
impl Clone for PacketTemplate
Source§fn clone(&self) -> PacketTemplate
fn clone(&self) -> PacketTemplate
Returns a copy 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 PacketTemplate
impl RefUnwindSafe for PacketTemplate
impl Send for PacketTemplate
impl Sync for PacketTemplate
impl Unpin for PacketTemplate
impl UnwindSafe for PacketTemplate
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