pub struct Next<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> Next<'a>
impl<'a> Next<'a>
Sourcepub fn run(
self,
job: &'a Job,
ctx: &'a WorkerContext,
) -> Pin<Box<dyn Future<Output = Result<WorkerResult>> + Send + 'a>>
pub fn run( self, job: &'a Job, ctx: &'a WorkerContext, ) -> Pin<Box<dyn Future<Output = Result<WorkerResult>> + Send + 'a>>
Invoke the next middleware in the stack, or the terminal
worker.execute if this is the innermost layer.
Returns a boxed future so the recursion through an unknown-depth
middleware stack stays Sized.
Auto Trait Implementations§
impl<'a> Freeze for Next<'a>
impl<'a> !RefUnwindSafe for Next<'a>
impl<'a> Send for Next<'a>
impl<'a> Sync for Next<'a>
impl<'a> Unpin for Next<'a>
impl<'a> UnsafeUnpin for Next<'a>
impl<'a> !UnwindSafe for Next<'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