#[non_exhaustive]pub struct ServeReport {
pub accepted: u64,
pub drained: bool,
pub abandoned: usize,
pub tasks: Option<InFlightReport>,
pub refused: Option<String>,
}Expand description
What the socket layer did, and whether it finished.
The counterpart to
ShutdownReport one layer down: a drain
that ran out of time says so instead of looking clean.
#[must_use]: a server that refused to start returns at once with
refused set, and a caller that drops the report exits
as though it had served (audit G-03, 2026-10-29).
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.accepted: u64Connections accepted over the server’s life.
drained: boolWhether every watched connection finished before drain_timeout.
abandoned: usizeConnections still open when drain_timeout expired. Zero when
drained is true.
tasks: Option<InFlightReport>What ending the in-flight tasks did: how many finished on their own,
how many were cancelled, and whether they all ended within
ServeConfig::task_grace. None
when the dispatcher has no
request_handler, and so no
tasks this server could end.
refused: Option<String>Why the server refused to start, under
ServeConfig::production; it then accepted nothing. None when it
served.
Trait Implementations§
Source§impl Clone for ServeReport
impl Clone for ServeReport
Source§fn clone(&self) -> ServeReport
fn clone(&self) -> ServeReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServeReport
impl Debug for ServeReport
impl Eq for ServeReport
Source§impl PartialEq for ServeReport
impl PartialEq for ServeReport
impl StructuralPartialEq for ServeReport
Auto Trait Implementations§
impl Forget for ServeReport
impl Freeze for ServeReport
impl Move for ServeReport
impl RefUnwindSafe for ServeReport
impl Send for ServeReport
impl Sync for ServeReport
impl Unpin for ServeReport
impl UnsafeUnpin for ServeReport
impl UnwindSafe for ServeReport
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].