pub struct ServerBoundKeepAlive {
pub id: VarLong,
}
Fields§
§id: VarLong
Implementations§
Trait Implementations§
Source§impl Clone for ServerBoundKeepAlive
impl Clone for ServerBoundKeepAlive
Source§fn clone(&self) -> ServerBoundKeepAlive
fn clone(&self) -> ServerBoundKeepAlive
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 ServerBoundKeepAlive
impl Debug for ServerBoundKeepAlive
Source§impl Packet for ServerBoundKeepAlive
impl Packet for ServerBoundKeepAlive
const ID: i32 = 4i32
Source§fn to_bytes(&self) -> Vec<u8> ⓘ
fn to_bytes(&self) -> Vec<u8> ⓘ
Serializes the packet to a Vec<u8> in accordance with the minecraft protocol so that it can be sent via the network. Read more
Source§fn from_reader(reader: &mut PacketReader) -> Result<Self, Errors>
fn from_reader(reader: &mut PacketReader) -> Result<Self, Errors>
Allows the reading of packets from a PacketReader. Read more
Auto Trait Implementations§
impl Freeze for ServerBoundKeepAlive
impl RefUnwindSafe for ServerBoundKeepAlive
impl Send for ServerBoundKeepAlive
impl Sync for ServerBoundKeepAlive
impl Unpin for ServerBoundKeepAlive
impl UnwindSafe for ServerBoundKeepAlive
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