pub struct EventPacket {
pub src: SocketAddr,
pub event_id: u16,
pub timestamp_dev: u64,
pub stream_channel: u16,
pub block_id: u64,
pub payload: Bytes,
}Expand description
Parsed representation of a single GVCP event.
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.
block_id: u64GVSP block identifier associated with the event.
16-bit on GigE Vision 1.x devices, widened here so a 2.0 device using extended block IDs fits without a second type.
payload: BytesEvent data following the entry, empty for a bare EVENT_CMD.
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 (const: unstable) · 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
Source§fn eq(&self, other: &EventPacket) -> bool
fn eq(&self, other: &EventPacket) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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