Struct ntex_mqtt::v3::client::ClientRouter [−][src]
pub struct ClientRouter<Io, Err, PErr> { /* fields omitted */ }
Expand description
Mqtt client with routing capabilities
Implementations
impl<Io, Err, PErr> ClientRouter<Io, Err, PErr> where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
Err: From<PErr> + 'static,
PErr: 'static,
impl<Io, Err, PErr> ClientRouter<Io, Err, PErr> where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
Err: From<PErr> + 'static,
PErr: 'static,
Configure mqtt resource for a specific topic
Run client with default control messages handler
pub async fn start<F, S>(self, service: F) -> Result<(), MqttError<Err>> where
F: IntoService<S> + 'static,
S: Service<Request = ControlMessage<Err>, Response = ControlResult, Error = Err> + 'static,
pub async fn start<F, S>(self, service: F) -> Result<(), MqttError<Err>> where
F: IntoService<S> + 'static,
S: Service<Request = ControlMessage<Err>, Response = ControlResult, Error = Err> + 'static,
Run client and handle control messages
Trait Implementations
Auto Trait Implementations
impl<Io, Err, PErr> !RefUnwindSafe for ClientRouter<Io, Err, PErr>
impl<Io, Err, PErr> !Send for ClientRouter<Io, Err, PErr>
impl<Io, Err, PErr> !Sync for ClientRouter<Io, Err, PErr>
impl<Io, Err, PErr> Unpin for ClientRouter<Io, Err, PErr> where
Err: Unpin,
Io: Unpin,
impl<Io, Err, PErr> !UnwindSafe for ClientRouter<Io, Err, PErr>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more