pub struct Event {
pub id: u16,
pub stream_channel: u16,
pub block_id: u64,
pub ts_dev: u64,
pub ts_host: Option<SystemTime>,
pub data: Bytes,
pub raw: Bytes,
}Expand description
Public representation of a GigE Vision event.
Its features — EventExposureEndTimestamp, EventExposureEndFrameID and
the rest — are read through GenApi from the port whose <EventID> matches
Event::id: see Camera::with_event.
Fields§
§id: u16Event identifier reported by the device.
stream_channel: u16Stream channel the event concerns, when it concerns one.
block_id: u64GVSP block the event concerns: 16 bits widened, or the 64-bit extended id.
ts_dev: u64Device timestamp associated with the event (ticks).
ts_host: Option<SystemTime>Host time the device timestamp maps to: None until the camera’s
clock is fitted (Camera::time_calibrate),
as for a frame. Never the time the event arrived, passed off as the
device’s (backlog API-20).
data: BytesEvent data following the event header; empty for an EVENT_CMD.
raw: BytesThe whole event as the device sent it, header included: what the camera’s event port addresses.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl !Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.