pub struct DiscardExchanges;Expand description
A sink that keeps nothing.
Trait Implementations§
Source§impl ExchangeSink for DiscardExchanges
impl ExchangeSink for DiscardExchanges
Source§fn deliver(
&self,
_: &ExchangeRecord,
_: Option<&RetainedBytes>,
) -> Result<(), String>
fn deliver( &self, _: &ExchangeRecord, _: Option<&RetainedBytes>, ) -> Result<(), String>
Receive one record, and its bytes when retention is on.
Source§fn offer(&self, offer: &ReconciliationOffer) -> Result<(), String>
fn offer(&self, offer: &ReconciliationOffer) -> Result<(), String>
Receive a reconciliation offer. The default discards it.
Source§fn deliver_located(
&self,
record: &ExchangeRecord,
retained: Option<&RetainedBytes>,
) -> Result<Option<String>, String>
fn deliver_located( &self, record: &ExchangeRecord, retained: Option<&RetainedBytes>, ) -> Result<Option<String>, String>
Self::deliver, naming where the host keeps the record: an opaque
locator a rustev.run/2 record may reference (spec 020, 3.2), never
a URL with credentials. The default delivers and names none.Auto Trait Implementations§
impl Freeze for DiscardExchanges
impl RefUnwindSafe for DiscardExchanges
impl Send for DiscardExchanges
impl Sync for DiscardExchanges
impl Unpin for DiscardExchanges
impl UnsafeUnpin for DiscardExchanges
impl UnwindSafe for DiscardExchanges
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