Enum autd3_driver::error::AUTDInternalError
source · #[non_exhaustive]pub enum AUTDInternalError {
Show 34 variants
ModulationSizeOutOfRange(usize),
InvalidSilencerCompletionTime(Duration),
SilencerCompletionTimeOutOfRange(Duration),
UnkownKey(String),
SamplingDivisionInvalid(u16),
SamplingFreqInvalid(Freq<u32>),
SamplingFreqInvalidF(Freq<f32>),
SamplingPeriodInvalid(Duration),
SamplingFreqOutOfRange(Freq<u32>, Freq<u32>, Freq<u32>),
SamplingFreqOutOfRangeF(Freq<f32>, Freq<f32>, Freq<f32>),
SamplingPeriodOutOfRange(Duration, Duration, Duration),
STMPeriodInvalid(usize, Duration),
FociSTMPointSizeOutOfRange(usize),
FociSTMNumFociOutOfRange(usize),
FociSTMPointOutOfRange(f32, f32, f32),
GainSTMSizeOutOfRange(usize),
GainSTMModeNotSupported(GainSTMMode),
ModulationError(String),
GainError(String),
LinkError(String),
NotSupported(String),
LinkClosed,
ConfirmResponseFailed,
SendDataFailed,
InvalidDateTime,
NotSupportedTag,
InvalidMessageID,
InvalidInfoType,
InvalidGainSTMMode,
UnknownFirmwareError(u8),
InvalidSegmentTransition,
InvalidTransitionMode,
MissTransitionTime,
InvalidSilencerSettings,
}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.
ModulationSizeOutOfRange(usize)
InvalidSilencerCompletionTime(Duration)
SilencerCompletionTimeOutOfRange(Duration)
UnkownKey(String)
SamplingDivisionInvalid(u16)
SamplingFreqInvalid(Freq<u32>)
SamplingFreqInvalidF(Freq<f32>)
SamplingPeriodInvalid(Duration)
SamplingFreqOutOfRange(Freq<u32>, Freq<u32>, Freq<u32>)
SamplingFreqOutOfRangeF(Freq<f32>, Freq<f32>, Freq<f32>)
SamplingPeriodOutOfRange(Duration, Duration, Duration)
STMPeriodInvalid(usize, Duration)
FociSTMPointSizeOutOfRange(usize)
FociSTMNumFociOutOfRange(usize)
FociSTMPointOutOfRange(f32, f32, f32)
GainSTMSizeOutOfRange(usize)
GainSTMModeNotSupported(GainSTMMode)
ModulationError(String)
GainError(String)
LinkError(String)
NotSupported(String)
LinkClosed
ConfirmResponseFailed
SendDataFailed
InvalidDateTime
NotSupportedTag
InvalidMessageID
InvalidInfoType
InvalidGainSTMMode
UnknownFirmwareError(u8)
InvalidSegmentTransition
InvalidTransitionMode
MissTransitionTime
InvalidSilencerSettings
Implementations§
source§impl AUTDInternalError
impl AUTDInternalError
pub const fn firmware_err(ack: u8) -> Self
Trait Implementations§
source§impl Clone for AUTDInternalError
impl Clone for AUTDInternalError
source§fn clone(&self) -> AUTDInternalError
fn clone(&self) -> AUTDInternalError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AUTDInternalError
impl Debug for AUTDInternalError
source§impl Display for AUTDInternalError
impl Display for AUTDInternalError
source§impl Error for AUTDInternalError
impl Error for AUTDInternalError
1.30.0 · 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 PartialEq for AUTDInternalError
impl PartialEq for AUTDInternalError
impl StructuralPartialEq for AUTDInternalError
Auto Trait Implementations§
impl Freeze for AUTDInternalError
impl RefUnwindSafe for AUTDInternalError
impl Send for AUTDInternalError
impl Sync for AUTDInternalError
impl Unpin for AUTDInternalError
impl UnwindSafe for AUTDInternalError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
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.