pub struct ConsumerEventListenerHandle { /* private fields */ }Expand description
Owns the background poller task driving a ConsumerEventListener.
Structurally identical to MessageListenerHandle — dropping the handle
aborts the poller; Self::close awaits a clean stop.
The poller terminates on its own when an explicit or terminal remote
close makes crate::ConsumerApi::next_active_change return an error.
Implementations§
Source§impl ConsumerEventListenerHandle
impl ConsumerEventListenerHandle
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
true while the poller task is still running. Flips to false once
the consumer reaches a terminal state (the loop broke) or the handle
has been Self::closed / dropped.
Trait Implementations§
Source§impl Debug for ConsumerEventListenerHandle
impl Debug for ConsumerEventListenerHandle
Source§impl Drop for ConsumerEventListenerHandle
impl Drop for ConsumerEventListenerHandle
Auto Trait Implementations§
impl !Freeze for ConsumerEventListenerHandle
impl !RefUnwindSafe for ConsumerEventListenerHandle
impl Send for ConsumerEventListenerHandle
impl Sync for ConsumerEventListenerHandle
impl Unpin for ConsumerEventListenerHandle
impl UnsafeUnpin for ConsumerEventListenerHandle
impl UnwindSafe for ConsumerEventListenerHandle
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