pub struct Launcher { /* private fields */ }Expand description
Launcher for asynchronous dispatch of filters through the Self::launch() method.
This type is intended to be injected in configuration function.
Implementations§
Source§impl Launcher
impl Launcher
Sourcepub async fn launch<F, I>(self, filter: F) -> Result<(), LaunchError>where
F: IntoHandler<FilterContext, I, Output = ()>,
pub async fn launch<F, I>(self, filter: F) -> Result<(), LaunchError>where
F: IntoHandler<FilterContext, I, Output = ()>,
Launches a filter to handle incoming concurrent requests.
This method ends when no more requests can be handled.
filter- The filter to be launched.
§Errors
This method will return an error in the following situation, but is not limited to just this cases:
- a
filtercan not be injected with extractible arguments.
Trait Implementations§
Source§impl FromContextOnce<ConfigureContext> for Launcher
impl FromContextOnce<ConfigureContext> for Launcher
type Error = Infallible
type Future<'c> = Ready<Result<Launcher, <Launcher as FromContextOnce<ConfigureContext>>::Error>>
fn from_context_once( context: Exclusive<'_, ConfigureContext>, ) -> Self::Future<'_>
Auto Trait Implementations§
impl !Freeze for Launcher
impl !RefUnwindSafe for Launcher
impl !Send for Launcher
impl !Sync for Launcher
impl Unpin for Launcher
impl !UnwindSafe for Launcher
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