pub struct NotificationListener { /* private fields */ }Expand description
Consumer half of a BACnet notification channel.
Produced by create_notification_listener or
create_notification_listener_with_capacity. The channel is closed and recv
returns None once the driver future finishes (i.e. when this receiver is dropped).
Implementations§
Source§impl NotificationListener
impl NotificationListener
Sourcepub async fn recv(&mut self) -> Option<Notification>
pub async fn recv(&mut self) -> Option<Notification>
Wait for and return the next notification. Returns None when the driver has stopped.
Auto Trait Implementations§
impl Freeze for NotificationListener
impl RefUnwindSafe for NotificationListener
impl Send for NotificationListener
impl Sync for NotificationListener
impl Unpin for NotificationListener
impl UnsafeUnpin for NotificationListener
impl UnwindSafe for NotificationListener
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