#[non_exhaustive]pub struct RawInbound {
pub id: i32,
pub body: Bytes,
pub at: Instant,
}Expand description
A clientbound play packet copied for the behaviour (Behavior::raw_packets).
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.id: i32Packet id (version-specific).
body: BytesThe body after the id, undecoded (a cheap reference-counted copy).
at: InstantWhen the frame was decoded from the socket (frames read together share it).
Trait Implementations§
Source§impl Clone for RawInbound
impl Clone for RawInbound
Source§impl Debug for RawInbound
impl Debug for RawInbound
impl Eq for RawInbound
Source§impl PartialEq for RawInbound
impl PartialEq for RawInbound
impl StructuralPartialEq for RawInbound
Auto Trait Implementations§
impl !Freeze for RawInbound
impl RefUnwindSafe for RawInbound
impl Send for RawInbound
impl Sync for RawInbound
impl Unpin for RawInbound
impl UnsafeUnpin for RawInbound
impl UnwindSafe for RawInbound
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