Enum WorldPhase
#[non_exhaustive]pub enum WorldPhase {
WorldOpenFailed,
WorldCloseFinal,
WorldCloseFailed,
}Expand description
The world phases (native_world_lifecycle’s phase).
The phase names are the hook log’s stable vocabulary (the Debug text
the mixins write); keep them despite the shared prefix.
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.
WorldOpenFailed
The open failed; error_text is the engine’s own error text.
WorldCloseFinal
World close final.
WorldCloseFailed
The server loop or final save failed; error_text carries the error.
Trait Implementations§
§impl Clone for WorldPhase
impl Clone for WorldPhase
§fn clone(&self) -> WorldPhase
fn clone(&self) -> WorldPhase
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 WorldPhase
§impl Debug for WorldPhase
impl Debug for WorldPhase
impl Eq for WorldPhase
§impl PartialEq for WorldPhase
impl PartialEq for WorldPhase
impl StructuralPartialEq for WorldPhase
Auto Trait Implementations§
impl Freeze for WorldPhase
impl RefUnwindSafe for WorldPhase
impl Send for WorldPhase
impl Sync for WorldPhase
impl Unpin for WorldPhase
impl UnsafeUnpin for WorldPhase
impl UnwindSafe for WorldPhase
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