Enum SleepProblem
#[non_exhaustive]pub enum SleepProblem {
NotPossibleHere,
NotPossibleNow,
}Expand description
Player.BedSleepingProblem as CanContinueSleepingEvent.getProblem reports it.
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.
NotPossibleHere
The sleeper’s bed is gone.
NotPossibleNow
The bed rule no longer lets a player sleep: it is daytime.
Trait Implementations§
§impl Clone for SleepProblem
impl Clone for SleepProblem
§fn clone(&self) -> SleepProblem
fn clone(&self) -> SleepProblem
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 SleepProblem
§impl Debug for SleepProblem
impl Debug for SleepProblem
impl Eq for SleepProblem
§impl PartialEq for SleepProblem
impl PartialEq for SleepProblem
impl StructuralPartialEq for SleepProblem
Auto Trait Implementations§
impl Freeze for SleepProblem
impl RefUnwindSafe for SleepProblem
impl Send for SleepProblem
impl Sync for SleepProblem
impl Unpin for SleepProblem
impl UnsafeUnpin for SleepProblem
impl UnwindSafe for SleepProblem
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