pub struct QueuedEvent {
pub event: TransactionEvent,
pub ack: Option<Sender<Result<(), EventDeliveryError>>>,
pub approx_bytes: usize,
}Expand description
Queued event for delivery.
Fields§
§event: TransactionEventEvent to deliver.
ack: Option<Sender<Result<(), EventDeliveryError>>>Optional oneshot for terminal delivery ack.
approx_bytes: usizeApproximate serialized size for byte-queue accounting (D-015).
Implementations§
Source§impl QueuedEvent
impl QueuedEvent
Sourcepub fn new(
event: TransactionEvent,
ack: Option<Sender<Result<(), EventDeliveryError>>>,
) -> Self
pub fn new( event: TransactionEvent, ack: Option<Sender<Result<(), EventDeliveryError>>>, ) -> Self
Build a queued event with a conservative byte estimate.
Auto Trait Implementations§
impl !RefUnwindSafe for QueuedEvent
impl !UnwindSafe for QueuedEvent
impl Freeze for QueuedEvent
impl Send for QueuedEvent
impl Sync for QueuedEvent
impl Unpin for QueuedEvent
impl UnsafeUnpin for QueuedEvent
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