pub struct Patience { /* private fields */ }Expand description
Tracks how long a rider will wait before abandoning.
Implementations§
Source§impl Patience
impl Patience
Sourcepub const fn max_wait_ticks(&self) -> u64
pub const fn max_wait_ticks(&self) -> u64
Maximum ticks the rider will wait before abandoning.
Sourcepub const fn waited_ticks(&self) -> u64
pub const fn waited_ticks(&self) -> u64
Ticks waited so far (incremented while in Waiting phase).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Patience
impl<'de> Deserialize<'de> for Patience
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl WorldQuery for &Patience
impl WorldQuery for &Patience
impl Copy for Patience
impl Eq for Patience
impl StructuralPartialEq for Patience
Auto Trait Implementations§
impl Freeze for Patience
impl RefUnwindSafe for Patience
impl Send for Patience
impl Sync for Patience
impl Unpin for Patience
impl UnsafeUnpin for Patience
impl UnwindSafe for Patience
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.