Trait raftstore::store::RequestInspector [−][src]
RequestInspector
makes RequestPolicy
for requests.
Required methods
fn has_applied_to_current_term(&mut self) -> bool
[src]
Has the current term been applied?
fn inspect_lease(&mut self) -> LeaseState
[src]
Inspects its lease.
Provided methods
fn inspect(&mut self, req: &RaftCmdRequest) -> Result<RequestPolicy>
[src]
Inspect a request, return a policy that tells us how to handle the request.
Implementors
impl<'r, 'm> RequestInspector for Inspector<'r, 'm>
[src]
fn has_applied_to_current_term(&mut self) -> bool
[src]
fn inspect_lease(&mut self) -> LeaseState
[src]
impl<EK, ER> RequestInspector for Peer<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,