pub enum RouteSupport {
Supported {
server: ServerId,
},
PushOnly {
server: ServerId,
},
CapabilityNotAdvertised {
server: ServerId,
capability: Capability,
},
Initializing,
NoServer,
}Expand description
Whether one route of a tool would be dispatched to a capable server.
Supported means “will be dispatched”, not “will succeed”: push-only
diagnostics, respawn backoff and indexing can still fail the call.
Variants§
Supported
The routed server is registered and advertises the tool’s capability.
PushOnly
The routed server is registered and publishes diagnostics but advertises
no pull provider, so get_diagnostics answers from the push cache.
CapabilityNotAdvertised
The routed server is registered but does not advertise the capability.
Fields
§
capability: CapabilityThe capability the server does not advertise.
Initializing
The routed server has not finished initializing, or its capabilities are not known yet.
NoServer
No server is routed for this tool.
Trait Implementations§
Source§impl Clone for RouteSupport
impl Clone for RouteSupport
Source§impl Debug for RouteSupport
impl Debug for RouteSupport
impl Eq for RouteSupport
Source§impl JsonSchema for RouteSupport
impl JsonSchema for RouteSupport
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 RouteSupport
impl PartialEq for RouteSupport
Source§impl Serialize for RouteSupport
impl Serialize for RouteSupport
impl StructuralPartialEq for RouteSupport
Auto Trait Implementations§
impl Freeze for RouteSupport
impl RefUnwindSafe for RouteSupport
impl Send for RouteSupport
impl Sync for RouteSupport
impl Unpin for RouteSupport
impl UnsafeUnpin for RouteSupport
impl UnwindSafe for RouteSupport
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.