pub enum ServerAttemptResult {
Ok {
server_key: ServerKey,
},
NoRootMarker {
looked_for: Vec<String>,
},
BinaryNotInstalled {
binary: String,
},
SpawnFailed {
binary: String,
reason: String,
},
}Expand description
Outcome of attempting to ensure a server is running for a single matching
ServerDef. Returned per matching server so the caller can report exactly
what happened to the user instead of collapsing all failures into “no
server”.
Variants§
Ok
Server is running and ready to serve requests for this file.
NoRootMarker
No workspace root was found by walking up from the file looking for any of the server’s configured root markers.
BinaryNotInstalled
The server’s binary could not be found on PATH (or override was missing/invalid).
SpawnFailed
Binary was found but spawning or initializing the server failed.
Trait Implementations§
Source§impl Clone for ServerAttemptResult
impl Clone for ServerAttemptResult
Source§fn clone(&self) -> ServerAttemptResult
fn clone(&self) -> ServerAttemptResult
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 moreAuto Trait Implementations§
impl Freeze for ServerAttemptResult
impl RefUnwindSafe for ServerAttemptResult
impl Send for ServerAttemptResult
impl Sync for ServerAttemptResult
impl Unpin for ServerAttemptResult
impl UnsafeUnpin for ServerAttemptResult
impl UnwindSafe for ServerAttemptResult
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