pub enum DemoEvent {
ShowWelcomeScreen,
TellMovementControls,
TellJumpControl,
TellInventoryControl,
EndDemo,
}
Variants§
Implementations§
Source§impl DemoEvent
impl DemoEvent
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: u8, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> u8
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Deserialize for DemoEvent
impl Deserialize for DemoEvent
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl Serialize for DemoEvent
impl Serialize for DemoEvent
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for DemoEvent
Auto Trait Implementations§
impl Freeze for DemoEvent
impl RefUnwindSafe for DemoEvent
impl Send for DemoEvent
impl Sync for DemoEvent
impl Unpin for DemoEvent
impl UnwindSafe for DemoEvent
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