Enum airmash_protocol::DespawnType
source · [−]#[non_exhaustive]
pub enum DespawnType {
LifetimeEnded,
Collided,
Unknown(u8),
}
Expand description
Details on how the mob despawned.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LifetimeEnded
The mob did not hit anything and will simply vanish.
Collided
The mob ran into something and exploded.
This is generally only used for missiles, some alternate clients may run into issues if used for box-type mobs.
Unknown(u8)
Trait Implementations
sourceimpl Clone for DespawnType
impl Clone for DespawnType
sourcefn clone(&self) -> DespawnType
fn clone(&self) -> DespawnType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DespawnType
impl Debug for DespawnType
sourceimpl<'de> DeserializeV5<'de> for DespawnType
impl<'de> DeserializeV5<'de> for DespawnType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<DespawnType> for u8
impl From<DespawnType> for u8
sourcefn from(v: DespawnType) -> Self
fn from(v: DespawnType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for DespawnType
impl From<u8> for DespawnType
sourceimpl Hash for DespawnType
impl Hash for DespawnType
sourceimpl PartialEq<DespawnType> for DespawnType
impl PartialEq<DespawnType> for DespawnType
sourcefn eq(&self, other: &DespawnType) -> bool
fn eq(&self, other: &DespawnType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DespawnType) -> bool
fn ne(&self, other: &DespawnType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for DespawnType
impl SerializeV5 for DespawnType
impl Copy for DespawnType
impl Eq for DespawnType
impl StructuralEq for DespawnType
impl StructuralPartialEq for DespawnType
Auto Trait Implementations
impl RefUnwindSafe for DespawnType
impl Send for DespawnType
impl Sync for DespawnType
impl Unpin for DespawnType
impl UnwindSafe for DespawnType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more