[][src]Struct ntex_mqtt::Router

pub struct Router<S, Req, Res, Err> { /* fields omitted */ }

Router - structure that follows the builder pattern for building publish packet router instances for mqtt server.

Implementations

impl<S, Req, Res, Err> Router<S, Req, Res, Err> where
    S: Clone + 'static,
    Req: Route + 'static,
    Res: 'static,
    Err: 'static, 
[src]

pub fn new<F, U: 'static>(default_service: F) -> Self where
    F: IntoServiceFactory<U>,
    U: ServiceFactory<Config = S, Request = Req, Response = Res, 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 = Req, Response = Res, Error = Err>,
    Err: From<U::InitError>, 
[src]

Configure mqtt resource for a specific topic.

Auto Trait Implementations

impl<S, Req, Res, Err> !RefUnwindSafe for Router<S, Req, Res, Err>

impl<S, Req, Res, Err> !Send for Router<S, Req, Res, Err>

impl<S, Req, Res, Err> !Sync for Router<S, Req, Res, Err>

impl<S, Req, Res, Err> Unpin for Router<S, Req, Res, Err>

impl<S, Req, Res, Err> !UnwindSafe for Router<S, Req, Res, Err>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,