[−][src]Struct rumq_client::MqttEventLoop
Complete state of the eventloop
Fields
options: MqttOptions
Options of the current mqtt connection
state: MqttState
Current state of the connection
requests: Box<dyn Requests>
Request stream
Methods
impl MqttEventLoop
[src]
pub async fn connect<'eventloop>(
&'eventloop mut self
) -> Result<impl Stream<Item = Notification> + 'eventloop, EventLoopError>
[src]
&'eventloop mut self
) -> Result<impl Stream<Item = Notification> + 'eventloop, EventLoopError>
Connects to the broker and returns a stream that does everything MQTT. This stream internally processes requests from the request stream provided to the eventloop while also consuming byte stream from the network and yielding mqtt packets as the output of the stream
Auto Trait Implementations
impl !RefUnwindSafe for MqttEventLoop
impl Send for MqttEventLoop
impl Sync for MqttEventLoop
impl Unpin for MqttEventLoop
impl !UnwindSafe for MqttEventLoop
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,