Enum airmash_protocol::LeaveHorizonType [−][src]
pub enum LeaveHorizonType { Player, Mob, }
Indicates the type of entity that just went outside of the player's horizon.
TODO: Complete reverse engineering this. NOTE: The values here aren't in any way certain and should be verified before relying upon them.
Variants
Player
Mob
Trait Implementations
impl Copy for LeaveHorizonType
[src]
impl Copy for LeaveHorizonType
impl Clone for LeaveHorizonType
[src]
impl Clone for LeaveHorizonType
fn clone(&self) -> LeaveHorizonType
[src]
fn clone(&self) -> LeaveHorizonType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LeaveHorizonType
[src]
impl Debug for LeaveHorizonType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for LeaveHorizonType
[src]
impl Hash for LeaveHorizonType
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for LeaveHorizonType
[src]
impl Eq for LeaveHorizonType
impl PartialEq for LeaveHorizonType
[src]
impl PartialEq for LeaveHorizonType
fn eq(&self, other: &LeaveHorizonType) -> bool
[src]
fn eq(&self, other: &LeaveHorizonType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl TryFrom<u8> for LeaveHorizonType
[src]
impl TryFrom<u8> for LeaveHorizonType
type Error = EnumValueOutOfRangeError<u8>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: u8) -> Result<Self, Self::Error>
[src]
fn try_from(v: u8) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<LeaveHorizonType> for u8
[src]
impl From<LeaveHorizonType> for u8
fn from(v: LeaveHorizonType) -> Self
[src]
fn from(v: LeaveHorizonType) -> Self
Performs the conversion.
impl TryFrom<u16> for LeaveHorizonType
[src]
impl TryFrom<u16> for LeaveHorizonType
type Error = EnumValueOutOfRangeError<u16>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: u16) -> Result<Self, Self::Error>
[src]
fn try_from(v: u16) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<LeaveHorizonType> for u16
[src]
impl From<LeaveHorizonType> for u16
fn from(v: LeaveHorizonType) -> Self
[src]
fn from(v: LeaveHorizonType) -> Self
Performs the conversion.
impl TryFrom<u32> for LeaveHorizonType
[src]
impl TryFrom<u32> for LeaveHorizonType
type Error = EnumValueOutOfRangeError<u32>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: u32) -> Result<Self, Self::Error>
[src]
fn try_from(v: u32) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<LeaveHorizonType> for u32
[src]
impl From<LeaveHorizonType> for u32
fn from(v: LeaveHorizonType) -> Self
[src]
fn from(v: LeaveHorizonType) -> Self
Performs the conversion.
impl TryFrom<i8> for LeaveHorizonType
[src]
impl TryFrom<i8> for LeaveHorizonType
type Error = EnumValueOutOfRangeError<i8>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: i8) -> Result<Self, Self::Error>
[src]
fn try_from(v: i8) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<LeaveHorizonType> for i8
[src]
impl From<LeaveHorizonType> for i8
fn from(v: LeaveHorizonType) -> Self
[src]
fn from(v: LeaveHorizonType) -> Self
Performs the conversion.
impl TryFrom<i16> for LeaveHorizonType
[src]
impl TryFrom<i16> for LeaveHorizonType
type Error = EnumValueOutOfRangeError<i16>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: i16) -> Result<Self, Self::Error>
[src]
fn try_from(v: i16) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<LeaveHorizonType> for i16
[src]
impl From<LeaveHorizonType> for i16
fn from(v: LeaveHorizonType) -> Self
[src]
fn from(v: LeaveHorizonType) -> Self
Performs the conversion.
impl TryFrom<i32> for LeaveHorizonType
[src]
impl TryFrom<i32> for LeaveHorizonType
type Error = EnumValueOutOfRangeError<i32>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: i32) -> Result<Self, Self::Error>
[src]
fn try_from(v: i32) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<LeaveHorizonType> for i32
[src]
impl From<LeaveHorizonType> for i32
fn from(v: LeaveHorizonType) -> Self
[src]
fn from(v: LeaveHorizonType) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for LeaveHorizonType
impl Send for LeaveHorizonType
impl Sync for LeaveHorizonType
impl Sync for LeaveHorizonType