#[non_exhaustive]pub enum AUTDDriverError {
Show 27 variants
InvalidSilencerCompletionTime(Duration),
SilencerCompletionTimeOutOfRange(Duration),
SamplingConfig(SamplingConfigError),
STMPeriodInvalid(usize, Duration),
ModulationSizeOutOfRange(usize),
FociSTMTotalSizeOutOfRange(usize),
FociSTMNumFociOutOfRange(usize),
FociSTMPointOutOfRange(f32, f32, f32),
GainSTMSizeOutOfRange(usize),
UnsupportedGPIOOutputType(String),
PulseWidth(PulseWidthError),
Modulation(ModulationError),
Gain(GainError),
Link(LinkError),
UnknownKey(String),
UnusedKey(String),
ConfirmResponseFailed,
ReadFirmwareVersionFailed(Vec<bool>),
InvalidDateTime,
FirmwareVersionMismatch,
UnsupportedOperation,
UnsupportedFirmware,
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
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.
ModulationSizeOutOfRange(usize)
Modulation buffer size is out of range.
FociSTMTotalSizeOutOfRange(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.
UnsupportedGPIOOutputType(String)
GPIO output type is not supported.
PulseWidth(PulseWidthError)
Pulse width error.
Modulation(ModulationError)
Error in the modulation.
Gain(GainError)
Error in the gain.
Link(LinkError)
Error in the Link.
UnknownKey(String)
Unknown group key.
UnusedKey(String)
Unused group key.
ConfirmResponseFailed
Failed to confirm the response from the device.
ReadFirmwareVersionFailed(Vec<bool>)
Failed to read firmware version.
InvalidDateTime
Invalid date time.
FirmwareVersionMismatch
Firmware version mismatch.
UnsupportedOperation
Unsupported operation.
UnsupportedFirmware
Unsupported firmware.
NotSupportedTag
Not supported tag.
Occurs when the software is not compatible with the firmware.
InvalidSegmentTransition
Invalid segment transition.
InvalidTransitionMode
Invalid transition mode.
MissTransitionTime
Miss transition time.
InvalidSilencerSettings
Silencer cannot complete phase/intensity interpolation 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
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 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
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(e: ModulationError) -> Self
fn from(e: ModulationError) -> Self
Source§impl From<PulseWidthError> for AUTDDriverError
impl From<PulseWidthError> for AUTDDriverError
Source§fn from(e: PulseWidthError) -> Self
fn from(e: PulseWidthError) -> Self
Source§impl From<SamplingConfigError> for AUTDDriverError
impl From<SamplingConfigError> for AUTDDriverError
Source§fn from(e: SamplingConfigError) -> Self
fn from(e: SamplingConfigError) -> Self
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> 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.