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