pub struct TransactionEventSender { /* private fields */ }Expand description
Runtime-held half of the event mailbox.
Implementations§
Source§impl TransactionEventSender
impl TransactionEventSender
Sourcepub fn max_event_items(&self) -> usize
pub fn max_event_items(&self) -> usize
Maximum queued event items installed at construction.
Sourcepub fn max_event_bytes(&self) -> usize
pub fn max_event_bytes(&self) -> usize
Maximum event payload bytes accepted by this mailbox.
Sourcepub fn queued_bytes(&self) -> u64
pub fn queued_bytes(&self) -> u64
Best-effort queued byte count.
Sourcepub fn try_send(&self, event: TransactionEvent) -> Result<(), EventEnqueueError>
pub fn try_send(&self, event: TransactionEvent) -> Result<(), EventEnqueueError>
Try to enqueue without waiting.
Sourcepub async fn send(
&self,
event: TransactionEvent,
) -> Result<(), EventEnqueueError>
pub async fn send( &self, event: TransactionEvent, ) -> Result<(), EventEnqueueError>
Enqueue, waiting until byte and item capacity are available or the receiver is dropped (D-047 lossless wait-for-capacity).
Callers that need a bounded wait MUST wrap this future in
tokio::select! with a deadline / cancel.
Trait Implementations§
Source§impl Clone for TransactionEventSender
impl Clone for TransactionEventSender
Source§fn clone(&self) -> TransactionEventSender
fn clone(&self) -> TransactionEventSender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransactionEventSender
impl RefUnwindSafe for TransactionEventSender
impl Send for TransactionEventSender
impl Sync for TransactionEventSender
impl Unpin for TransactionEventSender
impl UnsafeUnpin for TransactionEventSender
impl UnwindSafe for TransactionEventSender
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