pub struct WaitCause(/* private fields */);Expand description
The word a plugin names one kind of wait by — see Clock::sleep_because.
One word: a nonempty run of printable ASCII with no whitespace, because a simulated clock
carries it as one word of a line. WaitCause::new refuses anything else, and it is a
const fn, so a cause declared as a constant that is not a word fails the build rather
than reaching a clock.
Implementations§
Trait Implementations§
impl Copy for WaitCause
impl Eq for WaitCause
impl StructuralPartialEq for WaitCause
Auto Trait Implementations§
impl Freeze for WaitCause
impl RefUnwindSafe for WaitCause
impl Send for WaitCause
impl Sync for WaitCause
impl Unpin for WaitCause
impl UnsafeUnpin for WaitCause
impl UnwindSafe for WaitCause
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