pub struct ServerBoundPluginMessage {
pub channel: String,
pub data: Vec<u8>,
}
Fields§
§channel: String
§data: Vec<u8>
Implementations§
Trait Implementations§
Source§impl Debug for ServerBoundPluginMessage
impl Debug for ServerBoundPluginMessage
Source§impl Packet for ServerBoundPluginMessage
impl Packet for ServerBoundPluginMessage
const ID: i32 = 2i32
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 ServerBoundPluginMessage
impl RefUnwindSafe for ServerBoundPluginMessage
impl Send for ServerBoundPluginMessage
impl Sync for ServerBoundPluginMessage
impl Unpin for ServerBoundPluginMessage
impl UnwindSafe for ServerBoundPluginMessage
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