pub struct SensorWait {
pub since: Timestamp,
pub handed: Option<(String, Timestamp)>,
pub waited: Option<(String, Timestamp)>,
}Expand description
Where an @sensor(wait_for=RunOf(...)) stands (decision 353).
Fields§
§since: TimestampSince when it waits: its max_wait runs from here.
handed: Option<(String, Timestamp)>The run last handed to its function, and when it (or its task) ended.
waited: Option<(String, Timestamp)>The last run it returned NOT_YET for, and when that run (or its task) ended.
Trait Implementations§
Source§impl Clone for SensorWait
impl Clone for SensorWait
Source§fn clone(&self) -> SensorWait
fn clone(&self) -> SensorWait
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 moreSource§impl Debug for SensorWait
impl Debug for SensorWait
impl Eq for SensorWait
Source§impl PartialEq for SensorWait
impl PartialEq for SensorWait
impl StructuralPartialEq for SensorWait
Auto Trait Implementations§
impl Freeze for SensorWait
impl RefUnwindSafe for SensorWait
impl Send for SensorWait
impl Sync for SensorWait
impl Unpin for SensorWait
impl UnsafeUnpin for SensorWait
impl UnwindSafe for SensorWait
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more