pub struct Router<S, Err> { /* private fields */ }
Expand description
Router - structure that follows the builder pattern for building publish packet router instances for mqtt server.
Implementations§
source§impl<S, Err> Router<S, Err>where
S: 'static,
Err: 'static,
impl<S, Err> Router<S, Err>where S: 'static, Err: 'static,
sourcepub fn new<F, U>(default_service: F) -> Selfwhere
F: IntoServiceFactory<U, Publish, Session<S>>,
U: ServiceFactory<Publish, Session<S>, Response = PublishAck, Error = Err, InitError = Err> + 'static,
pub fn new<F, U>(default_service: F) -> Selfwhere F: IntoServiceFactory<U, Publish, Session<S>>, U: ServiceFactory<Publish, Session<S>, Response = PublishAck, Error = Err, InitError = Err> + 'static,
Create mqtt application router.
Default service to be used if no matching resource could be found.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more