Struct ntex_mqtt::v5::Router [−][src]
pub struct Router<S, Err> { /* fields omitted */ }
Expand description
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]
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]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]
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]Configure mqtt resource for a specific topic.
Auto Trait Implementations
impl<S, Err> !RefUnwindSafe for Router<S, Err>
impl<S, Err> !Send for Router<S, Err>
impl<S, Err> !Sync for Router<S, Err>
impl<S, Err> Unpin for Router<S, Err>
impl<S, Err> !UnwindSafe for Router<S, Err>
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>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self