pub struct NotificationReceiver { /* private fields */ }Expand description
Receiver end for notifications.
Implementations§
Source§impl NotificationReceiver
impl NotificationReceiver
Sourcepub async fn recv(&mut self) -> Option<JsonRpcNotification>
pub async fn recv(&mut self) -> Option<JsonRpcNotification>
Receive the next notification.
Sourcepub fn try_recv(&mut self) -> Result<JsonRpcNotification, TryRecvError>
pub fn try_recv(&mut self) -> Result<JsonRpcNotification, TryRecvError>
Try to receive a notification without blocking.
Auto Trait Implementations§
impl Freeze for NotificationReceiver
impl RefUnwindSafe for NotificationReceiver
impl Send for NotificationReceiver
impl Sync for NotificationReceiver
impl Unpin for NotificationReceiver
impl UnsafeUnpin for NotificationReceiver
impl UnwindSafe for NotificationReceiver
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