pub enum ControllerStageTimer<'a> {
Active(StageTimer<'a>),
Inert,
}Expand description
Controller-local stage timer wrapper.
Variants§
Active(StageTimer<'a>)
Stage timer delegated to an active generation.
Inert
Inert timer used while disabled/closing.
Implementations§
Source§impl ControllerStageTimer<'_>
impl ControllerStageTimer<'_>
Sourcepub async fn await_on<Fut, T, E>(self, fut: Fut) -> Result<T, E>
pub async fn await_on<Fut, T, E>(self, fut: Fut) -> Result<T, E>
Awaits fut, recording stage duration for active requests only.
§Errors
Returns the same Err(E) produced by fut unchanged.
Sourcepub async fn await_value<Fut, T>(self, fut: Fut) -> Twhere
Fut: Future<Output = T>,
pub async fn await_value<Fut, T>(self, fut: Fut) -> Twhere
Fut: Future<Output = T>,
Awaits infallible stage work, recording active requests only.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ControllerStageTimer<'a>
impl<'a> !RefUnwindSafe for ControllerStageTimer<'a>
impl<'a> Send for ControllerStageTimer<'a>
impl<'a> Sync for ControllerStageTimer<'a>
impl<'a> Unpin for ControllerStageTimer<'a>
impl<'a> UnsafeUnpin for ControllerStageTimer<'a>
impl<'a> !UnwindSafe for ControllerStageTimer<'a>
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