pub struct ReadOutcome {
pub status: u16,
pub found: bool,
pub body: Vec<u8>,
pub pool_reuse: bool,
}Expand description
The outcome of a read: whether the document was found, and its raw upstream body (the document as stored, before the read-path field strip).
Fields§
§status: u16The upstream HTTP status.
found: boolWhether the document exists.
body: Vec<u8>The raw upstream response body (the stored document when found).
pool_reuse: boolWhether this read rode a reused pooled connection (NFR-P telemetry).
Implementations§
Source§impl ReadOutcome
impl ReadOutcome
Sourcepub fn with_pool_reuse(self, reused: bool) -> Self
pub fn with_pool_reuse(self, reused: bool) -> Self
Records whether the dispatch reused a pooled connection (builder style).
Trait Implementations§
Source§impl Clone for ReadOutcome
impl Clone for ReadOutcome
Source§fn clone(&self) -> ReadOutcome
fn clone(&self) -> ReadOutcome
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 ReadOutcome
impl Debug for ReadOutcome
impl Eq for ReadOutcome
Source§impl PartialEq for ReadOutcome
impl PartialEq for ReadOutcome
Source§fn eq(&self, other: &ReadOutcome) -> bool
fn eq(&self, other: &ReadOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReadOutcome
Auto Trait Implementations§
impl Freeze for ReadOutcome
impl RefUnwindSafe for ReadOutcome
impl Send for ReadOutcome
impl Sync for ReadOutcome
impl Unpin for ReadOutcome
impl UnsafeUnpin for ReadOutcome
impl UnwindSafe for ReadOutcome
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.