pub struct ClientCommand<const V: i32> {
pub action_id: ClientCommandActionId,
}Expand description
client_command (serverbound play).
Fields§
§action_id: ClientCommandActionIdactionId
Trait Implementations§
Source§impl<const V: i32> Clone for ClientCommand<V>
impl<const V: i32> Clone for ClientCommand<V>
Source§impl<const V: i32> Debug for ClientCommand<V>
impl<const V: i32> Debug for ClientCommand<V>
Source§impl<const V: i32> Decode for ClientCommand<V>
Available on crate features v1_12_2 or v1_16_5 only.
impl<const V: i32> Decode for ClientCommand<V>
Available on crate features
v1_12_2 or v1_16_5 only.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<const V: i32> Encode for ClientCommand<V>
Available on crate features v1_12_2 or v1_16_5 only.
impl<const V: i32> Encode for ClientCommand<V>
Available on crate features
v1_12_2 or v1_16_5 only.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<340>> for ServerboundPlayPacket
impl From<ClientCommand<340>> for ServerboundPlayPacket
Source§fn from(p: ClientCommand) -> Self
fn from(p: ClientCommand) -> Self
Converts to this type from the input type.
Source§impl From<ClientCommand<754>> for ServerboundPlayPacket
impl From<ClientCommand<754>> for ServerboundPlayPacket
Source§fn from(p: ClientCommand) -> Self
fn from(p: ClientCommand) -> Self
Converts to this type from the input type.
Source§impl<const V: i32> Generate for ClientCommand<V>
Available on crate feature testgen and (crate features v1_12_2 or v1_16_5) only.
impl<const V: i32> Generate for ClientCommand<V>
Available on crate feature
testgen and (crate features v1_12_2 or v1_16_5) only.Source§impl<const V: i32> PartialEq for ClientCommand<V>
impl<const V: i32> PartialEq for ClientCommand<V>
impl<const V: i32> StructuralPartialEq for ClientCommand<V>
Auto Trait Implementations§
impl<const V: i32> Forget for ClientCommand<V>
impl<const V: i32> Freeze for ClientCommand<V>
impl<const V: i32> Move for ClientCommand<V>
impl<const V: i32> RefUnwindSafe for ClientCommand<V>
impl<const V: i32> Send for ClientCommand<V>
impl<const V: i32> Sync for ClientCommand<V>
impl<const V: i32> Unpin for ClientCommand<V>
impl<const V: i32> UnsafeUnpin for ClientCommand<V>
impl<const V: i32> UnwindSafe for ClientCommand<V>
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