Struct CanPlayerSleepEvent
pub struct CanPlayerSleepEvent<'a> {
pub player: u128,
pub name: &'a str,
pub pos: [i32; 3],
pub problem: &'a mut Option<String>,
}Expand description
What Hooks::can_player_sleep is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: u128§name: &'a str§pos: [i32; 3]§problem: &'a mut Option<String>Auto Trait Implementations§
impl<'a> !UnwindSafe for CanPlayerSleepEvent<'a>
impl<'a> Freeze for CanPlayerSleepEvent<'a>
impl<'a> RefUnwindSafe for CanPlayerSleepEvent<'a>
impl<'a> Send for CanPlayerSleepEvent<'a>
impl<'a> Sync for CanPlayerSleepEvent<'a>
impl<'a> Unpin for CanPlayerSleepEvent<'a>
impl<'a> UnsafeUnpin for CanPlayerSleepEvent<'a>
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