pub enum RestartFailure {
SpawnFailed {
message: String,
},
InitializeFailed {
message: String,
},
ShuttingDown,
}Expand description
Why a restart failed after the old process was already stopped.
The server stays registered as dead; the next tool call retries the spawn under the normal crash-loop backoff.
Variants§
SpawnFailed
The replacement process could not be started.
InitializeFailed
The replacement started but did not complete the initialize handshake.
ShuttingDown
mcpls is shutting down, so no replacement was started.
Trait Implementations§
Source§impl Clone for RestartFailure
impl Clone for RestartFailure
Source§impl Debug for RestartFailure
impl Debug for RestartFailure
impl Eq for RestartFailure
Source§impl JsonSchema for RestartFailure
impl JsonSchema for RestartFailure
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RestartFailure
impl PartialEq for RestartFailure
Source§impl Serialize for RestartFailure
impl Serialize for RestartFailure
impl StructuralPartialEq for RestartFailure
Auto Trait Implementations§
impl Freeze for RestartFailure
impl RefUnwindSafe for RestartFailure
impl Send for RestartFailure
impl Sync for RestartFailure
impl Unpin for RestartFailure
impl UnsafeUnpin for RestartFailure
impl UnwindSafe for RestartFailure
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.