pub struct Packet {
pub len: i32,
pub id: i32,
pub packet_type: i32,
pub body: String,
}
Expand description
Packet struct
Used by the client to send and recieve data from the rcon connection
Fields§
§len: i32
length of packet data
id: i32
packet id, when minecraft recieves a packet it response with a packet using the same id
packet_type: i32
packet type, Response, Cmd, Auth
body: String
packet contents, can be a command for example
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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