pub struct EventPacket {
pub src: SocketAddr,
pub event_id: u16,
pub timestamp_dev: u64,
pub stream_channel: u16,
pub block_id: u16,
pub payload: Bytes,
}Expand description
Parsed representation of a GVCP event packet.
Fields§
§src: SocketAddrSource address of the datagram.
event_id: u16Event identifier reported by the device.
timestamp_dev: u64Device timestamp carried by the event (ticks).
stream_channel: u16Stream channel associated with the event when present.
block_id: u16GVSP block identifier associated with the event when present.
payload: BytesRemaining payload bytes following the event header.
Trait Implementations§
Source§impl Clone for EventPacket
impl Clone for EventPacket
Source§fn clone(&self) -> EventPacket
fn clone(&self) -> EventPacket
Returns a duplicate 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 moreSource§impl Debug for EventPacket
impl Debug for EventPacket
Source§impl PartialEq for EventPacket
impl PartialEq for EventPacket
impl Eq for EventPacket
impl StructuralPartialEq for EventPacket
Auto Trait Implementations§
impl !Freeze for EventPacket
impl RefUnwindSafe for EventPacket
impl Send for EventPacket
impl Sync for EventPacket
impl Unpin for EventPacket
impl UnwindSafe for EventPacket
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