pub struct SearchOutcome {
pub status: u16,
pub body: Vec<u8>,
pub pool_reuse: bool,
}Expand description
The outcome of a search: the upstream status and raw response body (the hits, before the read-path field strip).
Fields§
§status: u16The upstream HTTP status.
body: Vec<u8>The raw upstream response body (the hits envelope).
pool_reuse: boolWhether this search rode a reused pooled connection (NFR-P telemetry).
Implementations§
Trait Implementations§
Source§impl Clone for SearchOutcome
impl Clone for SearchOutcome
Source§fn clone(&self) -> SearchOutcome
fn clone(&self) -> SearchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchOutcome
impl Debug for SearchOutcome
impl Eq for SearchOutcome
Source§impl PartialEq for SearchOutcome
impl PartialEq for SearchOutcome
Source§fn eq(&self, other: &SearchOutcome) -> bool
fn eq(&self, other: &SearchOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchOutcome
Auto Trait Implementations§
impl Freeze for SearchOutcome
impl RefUnwindSafe for SearchOutcome
impl Send for SearchOutcome
impl Sync for SearchOutcome
impl Unpin for SearchOutcome
impl UnsafeUnpin for SearchOutcome
impl UnwindSafe for SearchOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.