pub struct ClientCommand {
pub action_id: ClientCommandActionId,
}Expand description
client_command (serverbound play, id 0x04).
Fields§
§action_id: ClientCommandActionIdactionId
Trait Implementations§
Source§impl Clone for ClientCommand
impl Clone for ClientCommand
Source§impl Debug for ClientCommand
impl Debug for ClientCommand
Source§impl Decode for ClientCommand
impl Decode for ClientCommand
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for ClientCommand
impl Encode for ClientCommand
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<ClientCommand> for ServerboundPlayPacket
impl From<ClientCommand> for ServerboundPlayPacket
Source§fn from(p: ClientCommand) -> Self
fn from(p: ClientCommand) -> Self
Converts to this type from the input type.
Source§impl Generate for ClientCommand
Available on crate feature testgen only.
impl Generate for ClientCommand
Available on crate feature
testgen only.Source§impl Packet for ClientCommand
impl Packet for ClientCommand
Source§impl PartialEq for ClientCommand
impl PartialEq for ClientCommand
impl StructuralPartialEq for ClientCommand
Auto Trait Implementations§
impl Freeze for ClientCommand
impl RefUnwindSafe for ClientCommand
impl Send for ClientCommand
impl Sync for ClientCommand
impl Unpin for ClientCommand
impl UnsafeUnpin for ClientCommand
impl UnwindSafe for ClientCommand
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