Struct ntex_mqtt::v5::Router [−][src]
pub struct Router<S, Err> { /* fields omitted */ }
Router - structure that follows the builder pattern for building publish packet router instances for mqtt server.
Implementations
impl<S, Err> Router<S, Err> where
S: Clone + 'static,
Err: 'static,
[src]
impl<S, Err> Router<S, Err> where
S: Clone + 'static,
Err: 'static,
[src]pub fn new<F, U: 'static>(default_service: F) -> Self where
F: IntoServiceFactory<U>,
U: ServiceFactory<Config = S, Request = Publish, Response = PublishAck, Error = Err, InitError = Err>,
[src]
F: IntoServiceFactory<U>,
U: ServiceFactory<Config = S, Request = Publish, Response = PublishAck, Error = Err, InitError = Err>,
Create mqtt application router.
Default service to be used if no matching resource could be found.
pub fn resource<T, F, U: 'static>(self, address: T, service: F) -> Self where
T: IntoPattern,
F: IntoServiceFactory<U>,
U: ServiceFactory<Config = S, Request = Publish, Response = PublishAck, Error = Err>,
Err: From<U::InitError>,
[src]
T: IntoPattern,
F: IntoServiceFactory<U>,
U: ServiceFactory<Config = S, Request = Publish, Response = PublishAck, Error = Err>,
Err: From<U::InitError>,
Configure mqtt resource for a specific topic.
Auto Trait Implementations
impl<S, Err> !RefUnwindSafe for Router<S, Err>
impl<S, Err> !RefUnwindSafe for Router<S, Err>
impl<S, Err> !UnwindSafe for Router<S, Err>
impl<S, Err> !UnwindSafe for Router<S, Err>
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self