pub enum TrajectoryError {
MotorNotFound {
trajectory: String<32>,
motor: String<32>,
},
TargetExceedsLimits {
target: f32,
min: f32,
max: f32,
},
EmptyWaypoints,
TooManyWaypoints,
InvalidName(String<64>),
Empty,
}Expand description
Trajectory-related errors.
Variants§
MotorNotFound
Trajectory references non-existent motor
TargetExceedsLimits
Trajectory target exceeds motor limits
EmptyWaypoints
Waypoint list is empty
TooManyWaypoints
Too many waypoints
InvalidName(String<64>)
Invalid trajectory name or configuration
Empty
Empty trajectory (no waypoints or target)
Trait Implementations§
Source§impl Clone for TrajectoryError
impl Clone for TrajectoryError
Source§fn clone(&self) -> TrajectoryError
fn clone(&self) -> TrajectoryError
Returns a duplicate 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 TrajectoryError
impl Debug for TrajectoryError
Source§impl Display for TrajectoryError
impl Display for TrajectoryError
Source§impl Error for TrajectoryError
Available on crate feature std only.
impl Error for TrajectoryError
Available on crate feature
std only.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 From<TrajectoryError> for Error
impl From<TrajectoryError> for Error
Source§fn from(e: TrajectoryError) -> Self
fn from(e: TrajectoryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrajectoryError
impl PartialEq for TrajectoryError
impl StructuralPartialEq for TrajectoryError
Auto Trait Implementations§
impl Freeze for TrajectoryError
impl RefUnwindSafe for TrajectoryError
impl Send for TrajectoryError
impl Sync for TrajectoryError
impl Unpin for TrajectoryError
impl UnwindSafe for TrajectoryError
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