pub enum InitBanType {
Temporary,
Permanent,
Unrecognized(u8),
}
Expand description
Ban type sent with INIT_INIT packet. The official client treats a value >= 2 as Permanent. Otherwise, it’s Temporary.
Variants§
Trait Implementations§
Source§impl Clone for InitBanType
impl Clone for InitBanType
Source§fn clone(&self) -> InitBanType
fn clone(&self) -> InitBanType
Returns a copy 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 InitBanType
impl Debug for InitBanType
Source§impl Default for InitBanType
impl Default for InitBanType
Source§impl From<InitBanType> for u8
impl From<InitBanType> for u8
Source§fn from(value: InitBanType) -> u8
fn from(value: InitBanType) -> u8
Converts to this type from the input type.
Source§impl From<u8> for InitBanType
impl From<u8> for InitBanType
Source§impl PartialEq for InitBanType
impl PartialEq for InitBanType
impl Copy for InitBanType
impl Eq for InitBanType
impl StructuralPartialEq for InitBanType
Auto Trait Implementations§
impl Freeze for InitBanType
impl RefUnwindSafe for InitBanType
impl Send for InitBanType
impl Sync for InitBanType
impl Unpin for InitBanType
impl UnwindSafe for InitBanType
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