pub struct EnsureServerOutcomes {
pub successful: Vec<ServerKey>,
pub attempts: Vec<ServerAttempt>,
}Expand description
Aggregate outcome of ensure_server_for_file_detailed. Distinguishes:
- “No server registered for this file’s extension” (
attempts.is_empty()) - “Servers registered but none could start” (
successful.is_empty()but!attempts.is_empty()) - “At least one server is ready” (
!successful.is_empty())
Fields§
§successful: Vec<ServerKey>Server keys that are now running and ready to serve requests.
attempts: Vec<ServerAttempt>Per-server attempt records. Empty if no server is registered for the file’s extension.
Implementations§
Source§impl EnsureServerOutcomes
impl EnsureServerOutcomes
Sourcepub fn no_server_registered(&self) -> bool
pub fn no_server_registered(&self) -> bool
True if no server in the registry matched this file’s extension.
Trait Implementations§
Source§impl Clone for EnsureServerOutcomes
impl Clone for EnsureServerOutcomes
Source§fn clone(&self) -> EnsureServerOutcomes
fn clone(&self) -> EnsureServerOutcomes
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 EnsureServerOutcomes
impl Debug for EnsureServerOutcomes
Source§impl Default for EnsureServerOutcomes
impl Default for EnsureServerOutcomes
Source§fn default() -> EnsureServerOutcomes
fn default() -> EnsureServerOutcomes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnsureServerOutcomes
impl RefUnwindSafe for EnsureServerOutcomes
impl Send for EnsureServerOutcomes
impl Sync for EnsureServerOutcomes
impl Unpin for EnsureServerOutcomes
impl UnsafeUnpin for EnsureServerOutcomes
impl UnwindSafe for EnsureServerOutcomes
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<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