pub enum TrackStatusError {
InvalidTransition {
from: TrackStatusState,
event: String,
},
}Expand description
Errors that can occur during track status state transitions.
Variants§
InvalidTransition
An event was received that is not valid for the current state.
Fields
§
from: TrackStatusStateThe state the machine was in when the invalid event arrived.
Trait Implementations§
Source§impl Debug for TrackStatusError
impl Debug for TrackStatusError
Source§impl Display for TrackStatusError
impl Display for TrackStatusError
Source§impl Error for TrackStatusError
impl Error for TrackStatusError
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<TrackStatusError> for EndpointError
impl From<TrackStatusError> for EndpointError
Source§fn from(source: TrackStatusError) -> Self
fn from(source: TrackStatusError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrackStatusError
impl PartialEq for TrackStatusError
impl Eq for TrackStatusError
impl StructuralPartialEq for TrackStatusError
Auto Trait Implementations§
impl Freeze for TrackStatusError
impl RefUnwindSafe for TrackStatusError
impl Send for TrackStatusError
impl Sync for TrackStatusError
impl Unpin for TrackStatusError
impl UnsafeUnpin for TrackStatusError
impl UnwindSafe for TrackStatusError
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