#[non_exhaustive]pub enum AUTDDriverError {
Show 21 variants
ModulationSizeOutOfRange(usize),
InvalidSilencerCompletionTime(Duration),
SilencerCompletionTimeOutOfRange(Duration),
SamplingConfig(SamplingConfigError),
STMPeriodInvalid(usize, Duration),
FociSTMPointSizeOutOfRange(usize),
FociSTMNumFociOutOfRange(usize),
FociSTMPointOutOfRange(f32, f32, f32),
GainSTMSizeOutOfRange(usize),
GainSTMModeNotSupported(GainSTMMode),
Modulation(ModulationError),
Gain(GainError),
Link(LinkError),
LinkClosed,
ConfirmResponseFailed,
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
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)
Modulation buffer size is out of range.
InvalidSilencerCompletionTime(Duration)
Invalid silencer completion time.
SilencerCompletionTimeOutOfRange(Duration)
Silencer completion time is out of range.
SamplingConfig(SamplingConfigError)
Sampling config error
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.
Modulation(ModulationError)
Error in the modulation.
Gain(GainError)
Error in the gain.
Link(LinkError)
Error in the Link.
LinkClosed
Link is closed.
ConfirmResponseFailed
Failed to confirm the response from the device.
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
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 AUTDDriverError
impl Debug for AUTDDriverError
Source§impl Display for AUTDDriverError
impl Display for AUTDDriverError
Source§impl Error for AUTDDriverError
impl Error for AUTDDriverError
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<GainError> for AUTDDriverError
impl From<GainError> for AUTDDriverError
Source§impl From<Infallible> for AUTDDriverError
impl From<Infallible> for AUTDDriverError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<LinkError> for AUTDDriverError
impl From<LinkError> for AUTDDriverError
Source§impl From<ModulationError> for AUTDDriverError
impl From<ModulationError> for AUTDDriverError
Source§fn from(source: ModulationError) -> Self
fn from(source: ModulationError) -> Self
Converts to this type from the input type.
Source§impl From<SamplingConfigError> for AUTDDriverError
impl From<SamplingConfigError> for AUTDDriverError
Source§fn from(source: SamplingConfigError) -> Self
fn from(source: SamplingConfigError) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more
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>
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.