#[non_exhaustive]pub struct Teleport {
pub x: f64,
pub y: f64,
pub z: f64,
pub yaw: f32,
pub pitch: f32,
pub flags: i8,
pub teleport_id: Option<i32>,
}Expand description
A server teleport (position packet), before it is applied to the pose.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.x: f64X (absolute or relative, see flags).
y: f64Y.
z: f64Z.
yaw: f32Yaw.
pitch: f32Pitch.
flags: i8teleport_flags bits.
teleport_id: Option<i32>Teleport id to confirm (1.9+).
Trait Implementations§
impl Copy for Teleport
impl StructuralPartialEq for Teleport
Auto Trait Implementations§
impl Freeze for Teleport
impl RefUnwindSafe for Teleport
impl Send for Teleport
impl Sync for Teleport
impl Unpin for Teleport
impl UnsafeUnpin for Teleport
impl UnwindSafe for Teleport
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