pub struct GuardedRunner<G> { /* private fields */ }Implementations§
Source§impl<G> GuardedRunner<G>
impl<G> GuardedRunner<G>
pub fn new(guard: G) -> Self
pub fn with_observer<O>(guard: G, observer: O) -> Selfwhere
O: SchedulerObserver,
pub async fn run<F, Fut, T>( &self, slot: ExecutionSlot, run: F, ) -> Result<GuardedRunResult<T>, ExecutionGuardError>
pub async fn run_with_metadata<F, Fut, T>( &self, slot: ExecutionSlot, catch_up: bool, trigger_count: u32, run: F, ) -> Result<GuardedRunResult<T>, ExecutionGuardError>
pub async fn acquire( &self, slot: ExecutionSlot, ) -> Result<Option<GuardedSession<G>>, ExecutionGuardError>
Trait Implementations§
Source§impl<G: Clone> Clone for GuardedRunner<G>
impl<G: Clone> Clone for GuardedRunner<G>
Source§fn clone(&self) -> GuardedRunner<G>
fn clone(&self) -> GuardedRunner<G>
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 moreAuto Trait Implementations§
impl<G> Freeze for GuardedRunner<G>
impl<G> !RefUnwindSafe for GuardedRunner<G>
impl<G> Send for GuardedRunner<G>
impl<G> Sync for GuardedRunner<G>
impl<G> Unpin for GuardedRunner<G>
impl<G> UnsafeUnpin for GuardedRunner<G>
impl<G> !UnwindSafe for GuardedRunner<G>
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