pub enum NoServerReason {
NothingRegistered,
NoClaimant,
}Expand description
Why ToolRouter::resolve_any could not find a server for a
workspace-wide tool.
Variants§
NothingRegistered
No server is registered in this workspace at all. Reflects what has
registered (i.e. finished spawning), not what is configured in
mcpls.toml — a server that is still initializing, or one that was
configured but failed to spawn, is indistinguishable from “nothing
configured” at this layer. Callers with access to the set of servers
still expected to register (e.g. Translator::expected_servers) can
tell these apart.
NoClaimant
At least one server is registered, but none explicitly claims the requested tool and none is a catch-all.
Trait Implementations§
Source§impl Clone for NoServerReason
impl Clone for NoServerReason
Source§fn clone(&self) -> NoServerReason
fn clone(&self) -> NoServerReason
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 moreimpl Copy for NoServerReason
Source§impl Debug for NoServerReason
impl Debug for NoServerReason
impl Eq for NoServerReason
Source§impl PartialEq for NoServerReason
impl PartialEq for NoServerReason
impl StructuralPartialEq for NoServerReason
Auto Trait Implementations§
impl Freeze for NoServerReason
impl RefUnwindSafe for NoServerReason
impl Send for NoServerReason
impl Sync for NoServerReason
impl Unpin for NoServerReason
impl UnsafeUnpin for NoServerReason
impl UnwindSafe for NoServerReason
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