#[non_exhaustive]pub enum LegacyError {
Show 15 variants
Device {
device: usize,
code: u8,
},
Timeout {
phase: TimeoutPhase,
cycles: u32,
expected: u8,
acks: String,
stale_cycles: u32,
},
BusNotOperational {
phase: TimeoutPhase,
cycles: u32,
},
Link(String),
UnsupportedFirmware {
device: usize,
version: String,
},
FpgaStateInvalid {
device: usize,
state: u8,
},
DeviceCountMismatch {
geometry: usize,
link: usize,
},
NoDevices,
Encode(EncodeError),
SamplingConfig(SamplingConfigError),
PulseWidth(PulseWidthError),
DcSysTime(DcSysTimeError),
InvalidPayload(PayloadError),
RtClosed,
Closed,
}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.
Device
Timeout
BusNotOperational
Link(String)
UnsupportedFirmware
FpgaStateInvalid
DeviceCountMismatch
NoDevices
Encode(EncodeError)
SamplingConfig(SamplingConfigError)
PulseWidth(PulseWidthError)
DcSysTime(DcSysTimeError)
InvalidPayload(PayloadError)
RtClosed
Closed
Trait Implementations§
Source§impl Debug for LegacyError
impl Debug for LegacyError
Source§impl Display for LegacyError
impl Display for LegacyError
Source§impl Error for LegacyError
impl Error for LegacyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DcSysTimeError> for LegacyError
impl From<DcSysTimeError> for LegacyError
Source§fn from(source: DcSysTimeError) -> Self
fn from(source: DcSysTimeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for LegacyError
impl From<EncodeError> for LegacyError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<LinkError> for LegacyError
impl From<LinkError> for LegacyError
Source§impl From<PayloadError> for LegacyError
impl From<PayloadError> for LegacyError
Source§fn from(source: PayloadError) -> Self
fn from(source: PayloadError) -> Self
Converts to this type from the input type.
Source§impl From<PulseWidthError> for LegacyError
impl From<PulseWidthError> for LegacyError
Source§fn from(source: PulseWidthError) -> Self
fn from(source: PulseWidthError) -> Self
Converts to this type from the input type.
Source§impl From<SamplingConfigError> for LegacyError
impl From<SamplingConfigError> for LegacyError
Source§fn from(source: SamplingConfigError) -> Self
fn from(source: SamplingConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LegacyError
impl RefUnwindSafe for LegacyError
impl Send for LegacyError
impl Sync for LegacyError
impl Unpin for LegacyError
impl UnsafeUnpin for LegacyError
impl UnwindSafe for LegacyError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.