pub enum AdapterEvent {
Provider {
verdict: AdapterVerdict,
},
ErrorEnvelope {
error: AdapterErrorEnvelope,
},
Usage {
usage: AdapterUsage,
},
Started {
method: String,
route: String,
},
Response {
status: u16,
},
TransportEof {
after: usize,
partial_bytes: usize,
},
Finished {
ending: AdapterEnding,
},
Corrupt {
frame: usize,
},
IdentityExhausted,
}Expand description
Metadata from the provider boundary. Request/response bodies are not included.
Variants§
Provider
Fields actually present in a provider payload; absent fields are not updates.
Fields
verdict: AdapterVerdictThe provider’s verdict and selected model, independent of transport closure.
ErrorEnvelope
A provider error envelope, including envelopes carried under HTTP 200.
Fields
error: AdapterErrorEnvelopeScrubbed original envelope fields, not an inferred HTTP status.
Usage
Provider-reported usage for this attempt, including rejected responses.
Fields
usage: AdapterUsageA cumulative snapshot: replace earlier snapshots, never sum them.
Started
A request is about to be sent.
Fields
Response
The transport returned response headers.
TransportEof
The body reached EOF, independently of any provider terminal verdict.
Fields
Finished
The owning request boundary closed this attempt.
Fields
ending: AdapterEndingWhether the attempt completed, failed, or was dropped.
Corrupt
A complete transport frame could not be decoded; the driver may continue.
Fields
IdentityExhausted
The context cannot assign another unique send ordinal.
Trait Implementations§
Source§impl Clone for AdapterEvent
impl Clone for AdapterEvent
Source§impl Debug for AdapterEvent
impl Debug for AdapterEvent
Source§impl<'de> Deserialize<'de> for AdapterEvent
impl<'de> Deserialize<'de> for AdapterEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AdapterEvent
Source§impl PartialEq for AdapterEvent
impl PartialEq for AdapterEvent
Source§impl Serialize for AdapterEvent
impl Serialize for AdapterEvent
impl StructuralPartialEq for AdapterEvent
Auto Trait Implementations§
impl Freeze for AdapterEvent
impl RefUnwindSafe for AdapterEvent
impl Send for AdapterEvent
impl Sync for AdapterEvent
impl Unpin for AdapterEvent
impl UnsafeUnpin for AdapterEvent
impl UnwindSafe for AdapterEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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