pub struct TimerRunResult { /* private fields */ }Expand description
Ordinary callback result with one scheduling proposal.
The registry validates that the proposal is legal for the configured policy.
Implementations§
Source§impl TimerRunResult
impl TimerRunResult
Sourcepub const fn new(completion: TimerCompletion, directive: TimerDirective) -> Self
pub const fn new(completion: TimerCompletion, directive: TimerDirective) -> Self
Construct a result, forcing invariant failures to stop.
Sourcepub const fn completion(self) -> TimerCompletion
pub const fn completion(self) -> TimerCompletion
Return the completion classification and work count.
Sourcepub const fn directive(self) -> TimerDirective
pub const fn directive(self) -> TimerDirective
Return the post-run scheduling proposal.
Trait Implementations§
Source§impl Clone for TimerRunResult
impl Clone for TimerRunResult
Source§fn clone(&self) -> TimerRunResult
fn clone(&self) -> TimerRunResult
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 moreimpl Copy for TimerRunResult
Source§impl Debug for TimerRunResult
impl Debug for TimerRunResult
impl Eq for TimerRunResult
Source§impl PartialEq for TimerRunResult
impl PartialEq for TimerRunResult
impl StructuralPartialEq for TimerRunResult
Auto Trait Implementations§
impl Freeze for TimerRunResult
impl RefUnwindSafe for TimerRunResult
impl Send for TimerRunResult
impl Sync for TimerRunResult
impl Unpin for TimerRunResult
impl UnsafeUnpin for TimerRunResult
impl UnwindSafe for TimerRunResult
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