#[non_exhaustive]pub enum RailError {
Capacity,
InvalidTime,
InvalidCut,
InvalidPath,
Disconnected,
InvalidTimeline,
NumericalLimit,
Transition(TransitionError),
Curve(CurveError),
Route(NavigationError),
IncompleteCurve(TessellationStatus),
}Expand description
Rejected authoring/query; no partial player or batch output is committed.
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.
Capacity
Empty/oversized rail, batch, scratch or tessellation work budget.
InvalidTime
Nonfinite/negative time or duration; durations exceed 3600 seconds.
InvalidCut
Positive-duration cut or zero-duration moving segment.
InvalidPath
Empty route or position source does not meet both authored eyes.
Disconnected
Adjacent end/start keys differ. Insert an explicit cut instead.
InvalidTimeline
A loop has no positive duration, or adding a duration lost its boundary.
NumericalLimit
Loop count or rounded interior pose is not representable.
Transition(TransitionError)
Curve(CurveError)
Route(NavigationError)
IncompleteCurve(TessellationStatus)
Scratch contains only a prefix; the destination route is unchanged.
Trait Implementations§
Source§impl Error for RailError
impl Error for RailError
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<TransitionError> for RailError
impl From<TransitionError> for RailError
Source§fn from(e: TransitionError) -> RailError
fn from(e: TransitionError) -> RailError
Converts to this type from the input type.
impl Copy for RailError
impl Eq for RailError
impl StructuralPartialEq for RailError
Auto Trait Implementations§
impl Freeze for RailError
impl RefUnwindSafe for RailError
impl Send for RailError
impl Sync for RailError
impl Unpin for RailError
impl UnwindSafe for RailError
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