pub enum RoutingHint {
Show 15 variants
Route(RouteTarget),
Node(String),
Consistency(ConsistencyLevel),
Pool(PoolingModeHint),
Cache(CacheBehavior),
Timeout(Duration),
Priority(QueryPriority),
MaxLag(Duration),
Retry(RetryBehavior),
Branch(String),
TransparentWriteRouting(bool),
AgentTool(String),
WorkflowStep(String),
Prefetch(bool),
CacheTtl(Duration),
}Expand description
Individual routing hint
Variants§
Route(RouteTarget)
Target node type
Node(String)
Specific node by name
Consistency(ConsistencyLevel)
Consistency level requirement
Pool(PoolingModeHint)
Connection pool mode
Cache(CacheBehavior)
Cache behavior
Timeout(Duration)
Query timeout override
Priority(QueryPriority)
Query priority for scheduling
MaxLag(Duration)
Maximum acceptable replication lag
Retry(RetryBehavior)
Retry behavior on failure
Branch(String)
Branch name for branch-aware routing
TransparentWriteRouting(bool)
Enable Transparent Write Routing
AgentTool(String)
Agent tool identifier
WorkflowStep(String)
Workflow step identifier
Prefetch(bool)
Prefetch hint for context retrieval
CacheTtl(Duration)
Cache TTL override
Trait Implementations§
Source§impl Clone for RoutingHint
impl Clone for RoutingHint
Source§fn clone(&self) -> RoutingHint
fn clone(&self) -> RoutingHint
Returns a duplicate of the value. Read more
1.0.0 · 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 RoutingHint
impl Debug for RoutingHint
Source§impl PartialEq for RoutingHint
impl PartialEq for RoutingHint
impl StructuralPartialEq for RoutingHint
Auto Trait Implementations§
impl Freeze for RoutingHint
impl RefUnwindSafe for RoutingHint
impl Send for RoutingHint
impl Sync for RoutingHint
impl Unpin for RoutingHint
impl UnsafeUnpin for RoutingHint
impl UnwindSafe for RoutingHint
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more