#[non_exhaustive]pub enum TrajectoryError {
Corrupted,
File(BinaryFileError),
}Expand description
Why a trajectory could not be read.
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.
Corrupted
The body of the trajectory block is malformed: it is shorter than the header, or a segment does not fit in it.
File(BinaryFileError)
The show file could not be read.
Trait Implementations§
Source§impl Clone for TrajectoryError
impl Clone for TrajectoryError
impl Copy for TrajectoryError
Source§impl Debug for TrajectoryError
impl Debug for TrajectoryError
Source§impl Display for TrajectoryError
impl Display for TrajectoryError
impl Eq for TrajectoryError
Source§impl Error for TrajectoryError
impl Error for TrajectoryError
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<BinaryFileError> for TrajectoryError
impl From<BinaryFileError> for TrajectoryError
Source§fn from(err: BinaryFileError) -> Self
fn from(err: BinaryFileError) -> Self
Converts to this type from the input type.
Source§impl From<TrajectoryError> for RthTrajectoryError
impl From<TrajectoryError> for RthTrajectoryError
Source§fn from(err: TrajectoryError) -> Self
fn from(err: TrajectoryError) -> Self
Converts to this type from the input type.
Source§impl From<TrajectoryError> for ScreenplayError
impl From<TrajectoryError> for ScreenplayError
Source§fn from(err: TrajectoryError) -> Self
fn from(err: TrajectoryError) -> Self
Converts to this type from the input type.
Source§impl Hash for TrajectoryError
impl Hash for TrajectoryError
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 UnsafeUnpin 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