pub enum ClientChatMode {
Enabled,
CommandsOnly,
Hidden,
}
Variants§
Implementations§
Source§impl ClientChatMode
impl ClientChatMode
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for ClientChatMode
impl Clone for ClientChatMode
Source§fn clone(&self) -> ClientChatMode
fn clone(&self) -> ClientChatMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientChatMode
impl Debug for ClientChatMode
Source§impl Deserialize for ClientChatMode
impl Deserialize for ClientChatMode
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for ClientChatMode
impl PartialEq for ClientChatMode
Source§impl Serialize for ClientChatMode
impl Serialize for ClientChatMode
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for ClientChatMode
Auto Trait Implementations§
impl Freeze for ClientChatMode
impl RefUnwindSafe for ClientChatMode
impl Send for ClientChatMode
impl Sync for ClientChatMode
impl Unpin for ClientChatMode
impl UnwindSafe for ClientChatMode
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