pub struct FleetAnswer {
pub origin: String,
pub key: String,
pub encoding: Option<String>,
pub attachment: Option<ZBytes>,
pub answer: Answer,
}Expand description
One host’s answer, attributed to the origin that actually replied.
Fields§
§origin: String§key: StringThe reply’s own key expression — what origin was derived from, and
the concrete key a follow-up must be addressed to.
Empty for an error reply, which zenoh gives no sample and therefore no
key. Carried because origin is lossy by design: the attribution helper goes
through the grammar and yields "?" for any key that does not parse
under base, and a caller that must still name the responder (RFC 09
§5.1 O1 — a non-conforming key is a fact) has nowhere else to look.
encoding: Option<String>The reply’s declared encoding, when it carried one.
A caller that speaks a specific wire (@blob’s postcard replies, say)
needs to tell “answered in a dialect we do not speak” from “did not
answer”: the first is an observation, the second is silence, and RFC 09
§5.1 O4 forbids rendering them alike.
attachment: Option<ZBytes>The reply’s attachment, when it carried one (refcounted, like the
payload). None on an error reply is the only truth available:
zenoh’s ReplyError carries no attachment — a fact about the wire,
not an unobserved field.
answer: AnswerTrait Implementations§
Source§impl Clone for FleetAnswer
impl Clone for FleetAnswer
Source§fn clone(&self) -> FleetAnswer
fn clone(&self) -> FleetAnswer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FleetAnswer
impl !UnwindSafe for FleetAnswer
impl Freeze for FleetAnswer
impl Send for FleetAnswer
impl Sync for FleetAnswer
impl Unpin for FleetAnswer
impl UnsafeUnpin for FleetAnswer
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
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> ⓘ
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