#[non_exhaustive]pub struct U3vEvent {
pub id: u16,
pub timestamp: u64,
pub data: Bytes,
pub raw: Bytes,
}Expand description
One event a USB3 Vision device sent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u16The event’s ID: what the XML’s event port names in its <EventID>.
timestamp: u64Device time of the event, in ns (GenCP 1.3.1 Table 17).
data: BytesThe data after the event’s 12-byte header.
raw: BytesThe event as the device laid it out, from its event_size field on:
what the camera’s event port addresses.
Trait Implementations§
impl Eq for U3vEvent
impl StructuralPartialEq for U3vEvent
Auto Trait Implementations§
impl !Freeze for U3vEvent
impl RefUnwindSafe for U3vEvent
impl Send for U3vEvent
impl Sync for U3vEvent
impl Unpin for U3vEvent
impl UnsafeUnpin for U3vEvent
impl UnwindSafe for U3vEvent
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
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.