pub struct TransactionEventReceiver { /* private fields */ }Expand description
Host-held half of the event mailbox.
Implementations§
Source§impl TransactionEventReceiver
impl TransactionEventReceiver
Sourcepub async fn recv(&mut self) -> Option<TransactionEvent>
pub async fn recv(&mut self) -> Option<TransactionEvent>
Receive the next event, or None when the sender has been dropped.
Releases the queued byte reservation for the received item (D-046).
Sourcepub fn try_recv(&mut self) -> Result<TransactionEvent, TryRecvError>
pub fn try_recv(&mut self) -> Result<TransactionEvent, TryRecvError>
Non-blocking receive; releases byte reservation on success (D-046).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionEventReceiver
impl RefUnwindSafe for TransactionEventReceiver
impl Send for TransactionEventReceiver
impl Sync for TransactionEventReceiver
impl Unpin for TransactionEventReceiver
impl UnsafeUnpin for TransactionEventReceiver
impl UnwindSafe for TransactionEventReceiver
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