pub struct Attending<Id, Run, Moment> {
pub id: Id,
pub run: Run,
pub began: Moment,
pub held_since: Option<Moment>,
pub held_for: Duration,
}Expand description
Denotes one run, and the time it has spent running and held still.
Fields§
§id: IdNames the request the run works on behalf of.
run: RunCarries the run itself.
began: MomentDenotes when the run began.
held_since: Option<Moment>Denotes when it was last held still, while it is still being held.
held_for: DurationDenotes how long it was held still before that.
Implementations§
Trait Implementations§
impl<Id: Copy, Run: Copy, Moment: Copy> Copy for Attending<Id, Run, Moment>
impl<Id: Eq, Run: Eq, Moment: Eq> Eq for Attending<Id, Run, Moment>
Source§impl<Id: PartialEq, Run: PartialEq, Moment: PartialEq> PartialEq for Attending<Id, Run, Moment>
impl<Id: PartialEq, Run: PartialEq, Moment: PartialEq> PartialEq for Attending<Id, Run, Moment>
impl<Id: PartialEq, Run: PartialEq, Moment: PartialEq> StructuralPartialEq for Attending<Id, Run, Moment>
Auto Trait Implementations§
impl<Id, Run, Moment> Freeze for Attending<Id, Run, Moment>
impl<Id, Run, Moment> RefUnwindSafe for Attending<Id, Run, Moment>
impl<Id, Run, Moment> Send for Attending<Id, Run, Moment>
impl<Id, Run, Moment> Sync for Attending<Id, Run, Moment>
impl<Id, Run, Moment> Unpin for Attending<Id, Run, Moment>
impl<Id, Run, Moment> UnsafeUnpin for Attending<Id, Run, Moment>
impl<Id, Run, Moment> UnwindSafe for Attending<Id, Run, Moment>
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