pub struct Exchanges { /* private fields */ }Expand description
Delivers records and offers to the host sink, counting failures.
Implementations§
Source§impl Exchanges
impl Exchanges
pub fn new(sink: Arc<dyn ExchangeSink>, retain_bytes: bool) -> Self
pub fn retains_bytes(&self) -> bool
Sourcepub fn deliver(
&self,
record: ExchangeRecord,
bytes: Option<RetainedBytes>,
) -> DeliveryNote
pub fn deliver( &self, record: ExchangeRecord, bytes: Option<RetainedBytes>, ) -> DeliveryNote
Bound the record and hand it over. Never fails: a refusal or a panic in the sink is counted, and the note says so.
Sourcepub fn offer(&self, offer: ReconciliationOffer)
pub fn offer(&self, offer: ReconciliationOffer)
Offer a charge for reconciliation. Never fails; failures are counted.
pub fn stats(&self) -> ExchangeStats
Auto Trait Implementations§
impl !Freeze for Exchanges
impl !RefUnwindSafe for Exchanges
impl !UnwindSafe for Exchanges
impl Send for Exchanges
impl Sync for Exchanges
impl Unpin for Exchanges
impl UnsafeUnpin for Exchanges
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