pub enum CheckKind {
Command,
Query,
Data,
Cache,
Cancel,
}Expand description
Whether a middleware checks a command, a query, a file request or a cache request
(Check::kind).
Variants§
Command
A command: Check::aggregate_type and Check::aggregate_id are set.
Query
A query.
Data
A file request (crate::Files): Check::type_name is PutData, GetData,
DeleteData or ListData, Check::key is set.
Cache
A cache request (crate::Cache): Check::type_name is SetCache, GetCache or
DeleteCache, Check::key is set.
Cancel
A cancel of a scheduled command (crate::Kernable::cancel): Check::id,
Check::type_name, Check::aggregate_type, Check::aggregate_id,
Check::target and Check::data are the scheduled command’s (vault fields null),
Check::request is who cancels it. Decide it as the command itself, typically.
Trait Implementations§
impl Copy for CheckKind
impl Eq for CheckKind
impl StructuralPartialEq for CheckKind
Auto Trait Implementations§
impl Forget for CheckKind
impl Freeze for CheckKind
impl Move for CheckKind
impl RefUnwindSafe for CheckKind
impl Send for CheckKind
impl Sync for CheckKind
impl Unpin for CheckKind
impl UnsafeUnpin for CheckKind
impl UnwindSafe for CheckKind
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.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request