#[non_exhaustive]pub struct ServedSlice {
pub origin: String,
pub slice: RegistrySlice,
pub raw: String,
}Expand description
One producer’s served registry slice, attributed to the host that answered (#385).
The origin cannot come from the slice: a slice is include_str! of a
compiled registry file, and RegistrySlice::service_origin is Some
only for a service — a host producer’s origin is the host it runs on and
is therefore not in the document. It comes from the reply’s own key, the
way RFC 05 §2.1 requires every fan-in answer to be attributed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.origin: StringThe origin that answered — the h-… host id, or a verbatim service
origin. "?" when the reply key did not parse under this base, the
same lossy-but-stated convention FleetAnswer::origin uses.
slice: RegistrySliceThe parsed slice. Its name is the producer, which is a different
question from origin and is why both are here.
raw: StringThe reply’s raw TOML — the artifact the slice cache persists, since slices do not re-serialize.
Trait Implementations§
Source§impl Clone for ServedSlice
impl Clone for ServedSlice
Source§fn clone(&self) -> ServedSlice
fn clone(&self) -> ServedSlice
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 Freeze for ServedSlice
impl RefUnwindSafe for ServedSlice
impl Send for ServedSlice
impl Sync for ServedSlice
impl Unpin for ServedSlice
impl UnsafeUnpin for ServedSlice
impl UnwindSafe for ServedSlice
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