pub enum RoutingTarget {
Local,
Remote {
prefix: String,
original_name: String,
},
Reject,
}Expand description
Concrete executor target for a single call.
Variants§
Local
Dispatch to the in-process local ToolHandler.
Remote
Dispatch to the upstream proxy identified by prefix, using original_name
as the unprefixed tool name forwarded to that upstream.
Reject
Neither executor can handle the tool. The caller should reject with a clear error.
Trait Implementations§
Source§impl Clone for RoutingTarget
impl Clone for RoutingTarget
Source§fn clone(&self) -> RoutingTarget
fn clone(&self) -> RoutingTarget
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 moreSource§impl Debug for RoutingTarget
impl Debug for RoutingTarget
Source§impl PartialEq for RoutingTarget
impl PartialEq for RoutingTarget
Source§fn eq(&self, other: &RoutingTarget) -> bool
fn eq(&self, other: &RoutingTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RoutingTarget
impl StructuralPartialEq for RoutingTarget
Auto Trait Implementations§
impl Freeze for RoutingTarget
impl RefUnwindSafe for RoutingTarget
impl Send for RoutingTarget
impl Sync for RoutingTarget
impl Unpin for RoutingTarget
impl UnsafeUnpin for RoutingTarget
impl UnwindSafe for RoutingTarget
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.