pub struct NoopCallbacks;Trait Implementations§
Source§impl QpClientCallbacks for NoopCallbacks
impl QpClientCallbacks for NoopCallbacks
fn on_connected(&self)
fn on_disconnected(&self, _reason: QpDisconnectReason)
Source§fn on_stale_messages_drained(&self, _count: u64)
fn on_stale_messages_drained(&self, _count: u64)
A bulk count of outbound messages discarded rather than sent. Both
runtimes report through this: the legacy client counts its pre-reconnect
drain, and the scoped runtime counts superseded indicative frames AND
dropped RFQ responses. It carries no identity, so a firm quote that
died here cannot be traced back to its
rfq_id – use
Self::on_rfq_response_dropped for that. The scoped runtime reports
every RFQ drop through BOTH hooks, so existing consumers of this count
see unchanged totals.Source§fn on_rfq_response_dropped(
&self,
_message: &ClientOutbound,
_reason: RfqDropReason,
)
fn on_rfq_response_dropped( &self, _message: &ClientOutbound, _reason: RfqDropReason, )
An RFQ response the scoped runtime could not deliver, with the message
itself so the loss can be attributed (its
rfq_id, nonce, and legs
are all still present). A signed quote that never reaches the venue
usually needs a corrective audit event on the same rfq_id; the bare
count above cannot support that. Scoped runtime only – the legacy
client has no per-message deadlines.fn on_inbound_message_dropped(&self)
fn on_transport_activity(&self)
fn on_write_failed( &self, _operation: QpWriteOperation, _failure: QpWriteFailure, )
Auto Trait Implementations§
impl Freeze for NoopCallbacks
impl RefUnwindSafe for NoopCallbacks
impl Send for NoopCallbacks
impl Sync for NoopCallbacks
impl Unpin for NoopCallbacks
impl UnsafeUnpin for NoopCallbacks
impl UnwindSafe for NoopCallbacks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more