Struct nuclear::handler::WithState [−][src]
pub struct WithState<H, S> { /* fields omitted */ }
Trait Implementations
impl<H, S> Handler for WithState<H, S> where
H: Handler,
S: Send + Sync + 'static,
[src]
impl<H, S> Handler for WithState<H, S> where
H: Handler,
S: Send + Sync + 'static,
[src]fn handle<'t, 'a>(&'t self, req: Request) -> BoxFuture<'a, Result<Response>> where
't: 'a,
Self: 'a,
[src]
't: 'a,
Self: 'a,
fn with_state<S>(self, state: Arc<S>) -> WithState<Self, S> where
Self: Sized,
S: Send + Sync + 'static,
[src]
Self: Sized,
S: Send + Sync + 'static,
fn wrap<M>(self, middleware: M) -> Wrap<Self, M> where
Self: Sized,
M: Middleware,
[src]
Self: Sized,
M: Middleware,
fn boxed(self) -> Box<dyn Handler>ⓘ where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn into_server(self) -> Server where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
Auto Trait Implementations
impl<H, S> RefUnwindSafe for WithState<H, S> where
H: RefUnwindSafe,
S: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<H, S> Send for WithState<H, S> where
H: Send,
S: Send + Sync,
H: Send,
S: Send + Sync,
impl<H, S> Sync for WithState<H, S> where
H: Sync,
S: Send + Sync,
H: Sync,
S: Send + Sync,
impl<H, S> Unpin for WithState<H, S> where
H: Unpin,
H: Unpin,
impl<H, S> UnwindSafe for WithState<H, S> where
H: UnwindSafe,
S: RefUnwindSafe,
H: UnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]