pub enum PluginDecision {
Continue,
Skip,
Modified {
sql: String,
parameters: Vec<Value>,
},
Abort(String),
Kill,
}Expand description
插件决策
Variants§
Continue
继续执行(链中下一个插件)
Skip
跳过后续插件(但仍执行原 SQL)
Modified
修改 SQL/参数后继续
Abort(String)
中止执行(不执行原 SQL,返回错误)
Kill
Kill 当前查询/事务(用于慢查询自动 kill 等场景)
Trait Implementations§
Source§impl Clone for PluginDecision
impl Clone for PluginDecision
Source§fn clone(&self) -> PluginDecision
fn clone(&self) -> PluginDecision
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 PluginDecision
impl Debug for PluginDecision
Source§impl PartialEq for PluginDecision
impl PartialEq for PluginDecision
impl StructuralPartialEq for PluginDecision
Auto Trait Implementations§
impl Freeze for PluginDecision
impl RefUnwindSafe for PluginDecision
impl Send for PluginDecision
impl Sync for PluginDecision
impl Unpin for PluginDecision
impl UnsafeUnpin for PluginDecision
impl UnwindSafe for PluginDecision
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