pub struct ChannelEventLoop { /* private fields */ }Expand description
Implementations§
Source§impl ChannelEventLoop
impl ChannelEventLoop
Sourcepub fn new() -> (Self, ChannelClient, ChannelBroker)
pub fn new() -> (Self, ChannelClient, ChannelBroker)
Creates a new event loop along with the corresponding client and broker.
Trait Implementations§
Source§impl EventLoop for ChannelEventLoop
impl EventLoop for ChannelEventLoop
Source§fn poll<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Event> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn poll<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Event> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Poll the EventLoop for an event
Continuing to poll will reconnect if there is
a disconnection.
NOTE Don’t block this while iterating
Source§fn set_last_will(&mut self, will: LastWill)
fn set_last_will(&mut self, will: LastWill)
Set the last will to be used on the next connection
Auto Trait Implementations§
impl Freeze for ChannelEventLoop
impl RefUnwindSafe for ChannelEventLoop
impl Send for ChannelEventLoop
impl Sync for ChannelEventLoop
impl Unpin for ChannelEventLoop
impl UnwindSafe for ChannelEventLoop
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