pub(crate) enum ControlDeadline {
At(SimTime),
Permanent,
}Variants§
Implementations§
Source§impl ControlDeadline
impl ControlDeadline
fn from_duration(duration: CrowdControlDuration, now: SimTime) -> Self
pub(crate) fn active(self, now: SimTime) -> bool
pub(crate) fn later(self, other: Self) -> Self
fn reset_elapsed(self, now: SimTime) -> bool
Trait Implementations§
Source§impl Clone for ControlDeadline
impl Clone for ControlDeadline
Source§fn clone(&self) -> ControlDeadline
fn clone(&self) -> ControlDeadline
Returns a duplicate of the value. Read more
1.0.0 · 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 ControlDeadline
impl Debug for ControlDeadline
Source§impl Default for ControlDeadline
impl Default for ControlDeadline
Source§impl PartialEq for ControlDeadline
impl PartialEq for ControlDeadline
impl Copy for ControlDeadline
impl Eq for ControlDeadline
impl StructuralPartialEq for ControlDeadline
Auto Trait Implementations§
impl Freeze for ControlDeadline
impl RefUnwindSafe for ControlDeadline
impl Send for ControlDeadline
impl Sync for ControlDeadline
impl Unpin for ControlDeadline
impl UnsafeUnpin for ControlDeadline
impl UnwindSafe for ControlDeadline
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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