pub struct InteractEntity {
pub entity_id: i32,
pub mode: InteractMode,
pub shift_key_down: bool,
}
Fields§
§entity_id: i32
§mode: InteractMode
§shift_key_down: bool
Trait Implementations§
Source§impl Debug for InteractEntity
impl Debug for InteractEntity
Source§impl IdentifiedPacket<PacketId> for InteractEntity
impl IdentifiedPacket<PacketId> for InteractEntity
Source§impl<'a> SliceSerializable<'a> for InteractEntity
impl<'a> SliceSerializable<'a> for InteractEntity
type CopyType = &'a InteractEntity
fn read(bytes: &mut &'a [u8]) -> Result<InteractEntity>
fn get_write_size(object: &'a InteractEntity) -> usize
Source§unsafe fn write<'bytes>(
bytes: &'bytes mut [u8],
object: &'a InteractEntity,
) -> &'bytes mut [u8] ⓘ
unsafe fn write<'bytes>( bytes: &'bytes mut [u8], object: &'a InteractEntity, ) -> &'bytes mut [u8] ⓘ
Safety Read more
fn as_copy_type(t: &'a InteractEntity) -> Self::CopyType
fn read_fully(bytes: &mut &'a [u8]) -> Result<T, Error>
Auto Trait Implementations§
impl Freeze for InteractEntity
impl RefUnwindSafe for InteractEntity
impl Send for InteractEntity
impl Sync for InteractEntity
impl Unpin for InteractEntity
impl UnwindSafe for InteractEntity
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