Enum ServerTickPhase
#[non_exhaustive]pub enum ServerTickPhase {
ServerTickStart {
world_running: bool,
},
ServerTickEnd {
world_running: bool,
},
}Expand description
The tick phases carry whether the world runs, including frozen steps.
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.
Trait Implementations§
§impl Clone for ServerTickPhase
impl Clone for ServerTickPhase
§fn clone(&self) -> ServerTickPhase
fn clone(&self) -> ServerTickPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServerTickPhase
§impl Debug for ServerTickPhase
impl Debug for ServerTickPhase
impl Eq for ServerTickPhase
§impl PartialEq for ServerTickPhase
impl PartialEq for ServerTickPhase
impl StructuralPartialEq for ServerTickPhase
Auto Trait Implementations§
impl Freeze for ServerTickPhase
impl RefUnwindSafe for ServerTickPhase
impl Send for ServerTickPhase
impl Sync for ServerTickPhase
impl Unpin for ServerTickPhase
impl UnsafeUnpin for ServerTickPhase
impl UnwindSafe for ServerTickPhase
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