pub struct ScheduleAfter {
pub id: TimerId,
pub generation: TimerGeneration,
pub after: Duration,
}Expand description
Request scheduling relative to the interpreter’s clock.
Constructing this value does not observe a clock. The interpreter resolves
after only when it interprets the successful transition that emitted the
request.
Fields§
§id: TimerId§generation: TimerGeneration§after: DurationImplementations§
Source§impl ScheduleAfter
impl ScheduleAfter
pub const fn new( id: TimerId, generation: TimerGeneration, after: Duration, ) -> Self
Trait Implementations§
Source§impl ActionItem for ScheduleAfter
impl ActionItem for ScheduleAfter
type Custody = (Option<ScheduleAfter>, Option<<ScheduleAfter as ActionItem>::Reply>)
type Input<'a> = &'a mut Option<ScheduleAfter> where Self: 'a
type Reply = ItemSettlement<ScheduleAfter, <ScheduleAfter as ActionItem>::Accepted, <ScheduleAfter as ActionItem>::Rejection, <ScheduleAfter as ActionItem>::Prerequisite>
type Accepted = TimerScheduled
type Rejection = ScheduleAfterRejection
type Prerequisite = Never
fn prepare_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
fn interpretation_input<'a>(
custody: &'a mut Self::Custody,
) -> Option<(Self::Input<'a>, &'a mut Option<Self::Reply>)>where
Self: 'a,
fn finish_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
Source§impl Clone for ScheduleAfter
impl Clone for ScheduleAfter
Source§fn clone(&self) -> ScheduleAfter
fn clone(&self) -> ScheduleAfter
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 ScheduleAfter
impl Debug for ScheduleAfter
Source§impl From<(TimerId, TimerGeneration, Duration)> for ScheduleAfter
impl From<(TimerId, TimerGeneration, Duration)> for ScheduleAfter
Source§impl InterpreterRequest for ScheduleAfter
impl InterpreterRequest for ScheduleAfter
Source§impl PartialEq for ScheduleAfter
impl PartialEq for ScheduleAfter
Source§impl SourceAction for ScheduleAfter
impl SourceAction for ScheduleAfter
Source§type Source = ScheduleAfter
type Source = ScheduleAfter
Actor-owned ingress selection for the result.
impl Copy for ScheduleAfter
impl Eq for ScheduleAfter
impl StructuralPartialEq for ScheduleAfter
Auto Trait Implementations§
impl Freeze for ScheduleAfter
impl RefUnwindSafe for ScheduleAfter
impl Send for ScheduleAfter
impl Sync for ScheduleAfter
impl Unpin for ScheduleAfter
impl UnsafeUnpin for ScheduleAfter
impl UnwindSafe for ScheduleAfter
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