#[non_exhaustive]pub enum AUTDDriverError {
Show 31 variants
ModulationSizeOutOfRange(usize),
InvalidSilencerCompletionTime(Duration),
SilencerCompletionTimeOutOfRange(Duration),
UnkownKey(String),
KeyIsAlreadyUsed(String),
UnusedKey(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),
LinkClosed,
ConfirmResponseFailed,
SendDataFailed,
InvalidDateTime,
NotSupportedTag,
InvalidSegmentTransition,
InvalidTransitionMode,
MissTransitionTime,
InvalidSilencerSettings,
}Expand description
A interface for error handling in autd3-driver.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ModulationSizeOutOfRange(usize)
Modulation buffer size is out of range.
InvalidSilencerCompletionTime(Duration)
Invalid silencer completion time.
SilencerCompletionTimeOutOfRange(Duration)
Silencer completion time is out of range.
UnkownKey(String)
Unknown group key.
KeyIsAlreadyUsed(String)
Key is already used.
UnusedKey(String)
Unused group key.
SamplingDivisionInvalid(u16)
Invalid sampling division.
SamplingFreqInvalid(Freq<u32>)
Invalid sampling frequency.
SamplingFreqInvalidF(Freq<f32>)
Invalid sampling frequency.
SamplingPeriodInvalid(Duration)
Invalid sampling period.
SamplingFreqOutOfRange(Freq<u32>, Freq<u32>, Freq<u32>)
Sampling frequency is out of range.
SamplingFreqOutOfRangeF(Freq<f32>, Freq<f32>, Freq<f32>)
Sampling frequency is out of range.
SamplingPeriodOutOfRange(Duration, Duration, Duration)
Sampling period is out of range.
STMPeriodInvalid(usize, Duration)
Invalid STM period.
FociSTMPointSizeOutOfRange(usize)
FociSTM buffer size is out of range.
FociSTMNumFociOutOfRange(usize)
Number of foci is out of range.
FociSTMPointOutOfRange(f32, f32, f32)
FociSTM point is out of range.
GainSTMSizeOutOfRange(usize)
GainSTM buffer size is out of range.
GainSTMModeNotSupported(GainSTMMode)
GainSTM mode is not supported.
ModulationError(String)
Error in the modulation.
GainError(String)
Error in the gain.
LinkError(String)
Error in the Link.
LinkClosed
Link is closed.
ConfirmResponseFailed
Failed to confirm the response from the device.
SendDataFailed
Failed to send data.
InvalidDateTime
Invalid date time.
NotSupportedTag
Not supported tag.
Occurs when the software is not compatible with the firmware.
InvalidSegmentTransition
Invalid segment transition.
InvalidTransitionMode
Invalid segment transition mode.
MissTransitionTime
Miss transition time.
InvalidSilencerSettings
Silencer cannot complete phase/intensity completion in the specified sampling period.
Trait Implementations§
Source§impl Clone for AUTDDriverError
impl Clone for AUTDDriverError
Source§fn clone(&self) -> AUTDDriverError
fn clone(&self) -> AUTDDriverError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AUTDDriverError
impl Debug for AUTDDriverError
Source§impl Display for AUTDDriverError
impl Display for AUTDDriverError
Source§impl Error for AUTDDriverError
impl Error for AUTDDriverError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for AUTDDriverError
impl PartialEq for AUTDDriverError
impl StructuralPartialEq for AUTDDriverError
Auto Trait Implementations§
impl Freeze for AUTDDriverError
impl RefUnwindSafe for AUTDDriverError
impl Send for AUTDDriverError
impl Sync for AUTDDriverError
impl Unpin for AUTDDriverError
impl UnwindSafe for AUTDDriverError
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,
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>
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>
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.