pub struct DelegateRouteBuilder<'a, M, C, P> where
M: RouteMatcher + Send + Sync + 'static,
C: PipelineHandleChain<P> + Copy + Send + Sync + 'static,
P: Send + Sync + 'static, { /* private fields */ }
Expand description
A delegated builder, which is created by DrawRoutes::delegate
and returned. The DrawRoutes
trait has documentation for using this type.
Implementations
sourceimpl<'a, M, C, P> DelegateRouteBuilder<'a, M, C, P> where
M: RouteMatcher + Send + Sync + 'static,
C: PipelineHandleChain<P> + Copy + Send + Sync + 'static,
P: RefUnwindSafe + Send + Sync + 'static,
impl<'a, M, C, P> DelegateRouteBuilder<'a, M, C, P> where
M: RouteMatcher + Send + Sync + 'static,
C: PipelineHandleChain<P> + Copy + Send + Sync + 'static,
P: RefUnwindSafe + Send + Sync + 'static,
sourcepub fn add_route_matcher<NM: RouteMatcher + Send + Sync + 'static>(
self,
matcher: NM
) -> DelegateRouteBuilder<'a, AndRouteMatcher<M, NM>, C, P>
pub fn add_route_matcher<NM: RouteMatcher + Send + Sync + 'static>(
self,
matcher: NM
) -> DelegateRouteBuilder<'a, AndRouteMatcher<M, NM>, C, P>
Adds additional RouteMatcher
requirements to the current delegate.
Auto Trait Implementations
impl<'a, M, C, P> RefUnwindSafe for DelegateRouteBuilder<'a, M, C, P> where
P: RefUnwindSafe,
impl<'a, M, C, P> Send for DelegateRouteBuilder<'a, M, C, P>
impl<'a, M, C, P> Sync for DelegateRouteBuilder<'a, M, C, P>
impl<'a, M, C, P> Unpin for DelegateRouteBuilder<'a, M, C, P> where
C: Unpin,
M: Unpin,
impl<'a, M, C, P> !UnwindSafe for DelegateRouteBuilder<'a, M, C, P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more