pub enum TeleportError {
InvalidHandle,
Translation,
Rotation,
RevisionExhausted,
}Expand description
Checked teleport failure. The entire request is rejected before any edit.
The world method checks the handle first, then translation, rotation and
revision capacity. Handles must come from the same world; they contain no
world identity. See the dimensional PhysicsWorld::try_teleport_body recipe.
Variants§
InvalidHandle
The requested body handle is stale or absent.
Translation
The authored body-origin translation contains a non-finite component.
Rotation
Rotation cannot be normalized to a finite, dimension-valid quaternion.
RevisionExhausted
The body’s contact revision cannot advance without reusing an identity.
Trait Implementations§
Source§impl Clone for TeleportError
impl Clone for TeleportError
Source§fn clone(&self) -> TeleportError
fn clone(&self) -> TeleportError
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 TeleportError
impl Debug for TeleportError
Source§impl Display for TeleportError
impl Display for TeleportError
Source§impl Error for TeleportError
impl Error for TeleportError
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 PartialEq for TeleportError
impl PartialEq for TeleportError
impl Copy for TeleportError
impl Eq for TeleportError
impl StructuralPartialEq for TeleportError
Auto Trait Implementations§
impl Freeze for TeleportError
impl RefUnwindSafe for TeleportError
impl Send for TeleportError
impl Sync for TeleportError
impl Unpin for TeleportError
impl UnwindSafe for TeleportError
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