#[non_exhaustive]pub enum U3vStatus {
Common(StatusCode),
MsgTimeout,
ResendNotSupported,
DsiEndpointHalted,
SiPayloadSizeNotAligned,
SiRegistersInconsistent,
DataDiscarded,
DataOverrun,
Unknown(u16),
}Expand description
A USB3 Vision acknowledgement’s status.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Common(StatusCode)
A code GenCP and GigE Vision share: see
viva_gencp::StatusCode.
MsgTimeout
GenCP: a timeout waiting for an acknowledge. GigE Vision’s
NO_MSG is the same number.
ResendNotSupported
USB3 Vision: the device cannot resend.
DsiEndpointHalted
USB3 Vision: the stream endpoint is halted.
SiPayloadSizeNotAligned
USB3 Vision: the payload size is not a multiple of the transfer alignment the device requires.
SiRegistersInconsistent
USB3 Vision: the streaming interface registers contradict each other.
DataDiscarded
USB3 Vision: data was discarded.
DataOverrun
USB3 Vision: the device’s buffer overran.
Unknown(u16)
A code neither this transport’s table nor the shared core names. Carries the raw value so it can still be reported.
Implementations§
Source§impl U3vStatus
impl U3vStatus
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
The specification’s name for this code, for diagnostics.
Sourcepub const fn common(self) -> Option<StatusCode>
pub const fn common(self) -> Option<StatusCode>
The shared meaning, for a code in the core both transports define.
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
Whether this is SUCCESS.
Sourcepub const fn is_retryable(self) -> bool
pub const fn is_retryable(self) -> bool
Whether retrying the command could plausibly succeed: only
BUSY.
Trait Implementations§
impl Copy for U3vStatus
impl Eq for U3vStatus
Source§impl From<StatusCode> for U3vStatus
impl From<StatusCode> for U3vStatus
Source§fn from(common: StatusCode) -> Self
fn from(common: StatusCode) -> Self
impl StructuralPartialEq for U3vStatus
Auto Trait Implementations§
impl Freeze for U3vStatus
impl RefUnwindSafe for U3vStatus
impl Send for U3vStatus
impl Sync for U3vStatus
impl Unpin for U3vStatus
impl UnsafeUnpin for U3vStatus
impl UnwindSafe for U3vStatus
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
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.