pub struct ServedQuery {
pub selector: String,
pub parameters: String,
pub payload: Option<ZBytes>,
pub encoding: Option<String>,
pub attachment: Option<ZBytes>,
pub reply_error: Option<String>,
}Expand description
One incoming query, owned — what the responder answered, and what a frontend logs.
Fields§
§selector: StringThe query’s full selector, verbatim (key expression + parameters).
parameters: StringThe parameters half alone, verbatim (“” when none).
payload: Option<ZBytes>The query body, when it carried one (refcounted, like a payload).
encoding: Option<String>The body’s declared encoding, when said.
attachment: Option<ZBytes>The query’s attachment, when it carried one (#117).
reply_error: Option<String>Why the reply failed to send, when it did — None is a sent reply.
Surfaced, not swallowed (deep-review D7): the ask itself is still a fact worth logging either way, but a responder whose answers never leave the process must say so, or its log reads as service (RFC 05 §3.1 — silence needs attribution, on the answering side too).
Trait Implementations§
Source§impl Clone for ServedQuery
impl Clone for ServedQuery
Source§fn clone(&self) -> ServedQuery
fn clone(&self) -> ServedQuery
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ServedQuery
impl !UnwindSafe for ServedQuery
impl Freeze for ServedQuery
impl Send for ServedQuery
impl Sync for ServedQuery
impl Unpin for ServedQuery
impl UnsafeUnpin for ServedQuery
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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