pub enum RoutingReason {
ExplicitPrefix,
LocalOnly,
RemoteOnly,
StrategyRemote,
StrategyLocal,
StrategyLocalFirst,
StrategyRemoteFirst,
OverrideRule(String),
SchemaIncompatible,
Unknown,
}Expand description
Short reason label attached to every decision — surfaced in logs and _meta responses.
Variants§
ExplicitPrefix
Explicit prefix in the tool name override.
LocalOnly
No upstream advertises this tool; local-only execution.
RemoteOnly
No local counterpart exists; must go upstream.
StrategyRemote
Local and upstream both advertise the tool and schemas match.
StrategyLocal
StrategyLocalFirst
StrategyRemoteFirst
OverrideRule(String)
SchemaIncompatible
Schemas disagree; forced back to remote.
Unknown
Tool name is completely unknown to both sides.
Implementations§
Trait Implementations§
Source§impl Clone for RoutingReason
impl Clone for RoutingReason
Source§fn clone(&self) -> RoutingReason
fn clone(&self) -> RoutingReason
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 RoutingReason
impl Debug for RoutingReason
Source§impl PartialEq for RoutingReason
impl PartialEq for RoutingReason
Source§fn eq(&self, other: &RoutingReason) -> bool
fn eq(&self, other: &RoutingReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RoutingReason
impl StructuralPartialEq for RoutingReason
Auto Trait Implementations§
impl Freeze for RoutingReason
impl RefUnwindSafe for RoutingReason
impl Send for RoutingReason
impl Sync for RoutingReason
impl Unpin for RoutingReason
impl UnsafeUnpin for RoutingReason
impl UnwindSafe for RoutingReason
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.