#[non_exhaustive]pub enum GigeStatus {
Show 17 variants
Common(StatusCode),
PacketResend,
LocalProblem,
MsgMismatch,
InvalidProtocol,
NoMsg,
PacketUnavailable,
DataOverrun,
PacketNotYetAvailable,
PacketAndPreviousRemovedFromMemory,
PacketRemovedFromMemory,
NoRefTime,
PacketTemporarilyUnavailable,
Overflow,
ActionLate,
LeaderTrailerOverflow,
Unknown(u16),
}Expand description
A GigE Vision status: a GVCP acknowledgement’s, or a GVSP packet’s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Common(StatusCode)
A code GenCP and GigE Vision share: see
viva_gencp::StatusCode.
PacketResend
A GVSP packet the device sent again, in answer to a resend request. Not an error.
LocalProblem
An internal problem in the device (deprecated).
MsgMismatch
The acknowledgement does not match the command (deprecated).
InvalidProtocol
The command is not of a protocol the device supports (deprecated).
NoMsg
No message (deprecated). GenCP’s MSG_TIMEOUT is the same number.
The packet asked for again is no longer available.
DataOverrun
The device’s internal memory overran: data was lost.
PacketNotYetAvailable
The packet asked for again has not been sent yet.
PacketAndPreviousRemovedFromMemory
The packet asked for again, and every packet before it, has been removed from the device’s memory.
PacketRemovedFromMemory
The packet asked for again has been removed from the device’s memory.
NoRefTime
The device has no time reference for a scheduled action (GigE Vision 2.0).
The packet asked for again cannot be sent just now (GigE Vision 2.0).
Overflow
The device’s queue overflowed (GigE Vision 2.0).
ActionLate
A scheduled action arrived after its time (GigE Vision 2.0).
LeaderTrailerOverflow
A leader or trailer did not fit the packet size (GigE Vision 2.1).
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 GigeStatus
impl GigeStatus
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§
Source§impl Clone for GigeStatus
impl Clone for GigeStatus
impl Copy for GigeStatus
Source§impl Debug for GigeStatus
impl Debug for GigeStatus
Source§impl Display for GigeStatus
Prints the specification name and the raw hex value.
impl Display for GigeStatus
Prints the specification name and the raw hex value.