#[non_exhaustive]pub enum FrameStatus {
Complete,
Incomplete {
missing_packets: u32,
},
DeviceStatus(GigeStatus),
U3vDeviceStatus(U3vStatus),
TrailerMissing,
}Expand description
How a frame’s block ended.
A stream hands out only FrameStatus::Complete frames unless it was asked
to deliver incomplete ones too (FrameStream::set_deliver_incomplete).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Complete
Every packet arrived and the device reported success.
Incomplete
The trailer arrived; missing_packets packets (the leader among them,
if it was lost) did not. Their bytes in the payload are zero.
DeviceStatus(GigeStatus)
The trailer reported this error status (bit 15 set).
U3vDeviceStatus(U3vStatus)
A USB3 Vision trailer reported this error status (bit 15 set), such
as DATA_OVERRUN: the device dropped data.
TrailerMissing
No trailer arrived before the block timed out or was displaced, so how many packets the block had is unknown.
Implementations§
Source§impl FrameStatus
impl FrameStatus
Sourcepub fn is_complete(self) -> bool
pub fn is_complete(self) -> bool
Whether this is FrameStatus::Complete.
Trait Implementations§
Source§impl Clone for FrameStatus
impl Clone for FrameStatus
impl Copy for FrameStatus
Source§impl Debug for FrameStatus
impl Debug for FrameStatus
impl Eq for FrameStatus
Source§impl PartialEq for FrameStatus
impl PartialEq for FrameStatus
impl StructuralPartialEq for FrameStatus
Auto Trait Implementations§
impl Freeze for FrameStatus
impl RefUnwindSafe for FrameStatus
impl Send for FrameStatus
impl Sync for FrameStatus
impl Unpin for FrameStatus
impl UnsafeUnpin for FrameStatus
impl UnwindSafe for FrameStatus
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.