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