#[non_exhaustive]pub struct EvsHeader {
pub format: EvsFormat,
pub seq: u32,
pub timestamp: Option<u64>,
pub payload_len: u32,
}Expand description
24-byte header prepended to every event-vision block.
See the module-level documentation for the byte layout.
#[non_exhaustive]: build one with EvsHeader::new, so that adding the
next field is not a breaking change.
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.format: EvsFormatEncoding of the event bytes.
seq: u32Block counter, starting at zero for each acquisition (wraps at
u32::MAX). Counts event blocks only; images have their own seq.
timestamp: Option<u64>Device timestamp from the GVSP leader, when the stream carried one.
payload_len: u32Length in bytes of the event data that follows the header.
Implementations§
Trait Implementations§
impl Eq for EvsHeader
impl StructuralPartialEq for EvsHeader
Auto Trait Implementations§
impl Freeze for EvsHeader
impl RefUnwindSafe for EvsHeader
impl Send for EvsHeader
impl Sync for EvsHeader
impl Unpin for EvsHeader
impl UnsafeUnpin for EvsHeader
impl UnwindSafe for EvsHeader
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
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
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.