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.
Sourcepub fn only_inapplicable_root_markers(&self) -> bool
pub fn only_inapplicable_root_markers(&self) -> bool
True when servers matched the file’s extension but none actually apply
to this project — i.e. nothing started and every attempt failed the root
marker check (e.g. oxlint registered for .ts with no .oxlintrc.json).
Distinct from no_server_registered (extension unsupported) and from a
real outage (binary missing / spawn failed): a missing root marker is a
filesystem fact that never changes mid-scan, so such a file will never
produce diagnostics and must not be reported as “pending”.
Trait Implementations§
Source§impl Clone for EnsureServerOutcomes
impl Clone for EnsureServerOutcomes
Source§fn clone(&self) -> EnsureServerOutcomes
fn clone(&self) -> EnsureServerOutcomes
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 EnsureServerOutcomes
impl Debug for EnsureServerOutcomes
Source§impl Default for EnsureServerOutcomes
impl Default for EnsureServerOutcomes
Source§fn default() -> EnsureServerOutcomes
fn default() -> EnsureServerOutcomes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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