Struct raftstore::store::fsm::store::RaftRouter [−][src]
Fields
router: BatchRouter<PeerFsm<EK, ER>, StoreFsm<EK>>
Implementations
impl<EK, ER> RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
pub fn send_raft_message(
&self,
msg: RaftMessage
) -> Result<(), TrySendError<RaftMessage>>
[src]
&self,
msg: RaftMessage
) -> Result<(), TrySendError<RaftMessage>>
pub fn send_raft_command(
&self,
cmd: RaftCommand<EK::Snapshot>
) -> Result<(), TrySendError<RaftCommand<EK::Snapshot>>>
[src]
&self,
cmd: RaftCommand<EK::Snapshot>
) -> Result<(), TrySendError<RaftCommand<EK::Snapshot>>>
fn report_unreachable(&self, store_id: u64)
[src]
fn report_status_update(&self)
[src]
pub fn report_resolved(&self, store_id: u64, group_id: u64)
[src]
Broadcasts resolved result to all regions.
pub fn register(&self, region_id: u64, mailbox: BasicMailbox<PeerFsm<EK, ER>>)
[src]
pub fn register_all(&self, mailboxes: Vec<(u64, BasicMailbox<PeerFsm<EK, ER>>)>)
[src]
pub fn close(&self, region_id: u64)
[src]
pub fn clear_cache(&self)
[src]
fn update_trace(&self)
[src]
Trait Implementations
impl<EK, ER> CasualRouter<EK> for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
impl<EK, ER> Clone for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<EK, ER> Deref for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
type Target = BatchRouter<PeerFsm<EK, ER>, StoreFsm<EK>>
The resulting type after dereferencing.
fn deref(&self) -> &BatchRouter<PeerFsm<EK, ER>, StoreFsm<EK>>
[src]
impl<EK, ER> Drop for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
impl<EK, ER> Notifier<EK> for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
fn notify(&self, apply_res: Vec<ApplyRes<EK::Snapshot>>)
[src]
fn notify_one(&self, region_id: u64, msg: PeerMsg<EK>)
[src]
fn clone_box(&self) -> Box<dyn ApplyNotifier<EK>>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
[src]
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<EK, ER> ProposalRouter<<EK as KvEngine>::Snapshot> for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
fn send(
&self,
cmd: RaftCommand<EK::Snapshot>
) -> Result<(), TrySendError<RaftCommand<EK::Snapshot>>>
[src]
&self,
cmd: RaftCommand<EK::Snapshot>
) -> Result<(), TrySendError<RaftCommand<EK::Snapshot>>>
impl<EK: KvEngine, ER: RaftEngine> RaftStoreRouter<EK> for RaftRouter<EK, ER>
[src]
fn send_raft_msg(&self, msg: RaftMessage) -> RaftStoreResult<()>
[src]
fn significant_send(
&self,
region_id: u64,
msg: SignificantMsg<EK::Snapshot>
) -> RaftStoreResult<()>
[src]
&self,
region_id: u64,
msg: SignificantMsg<EK::Snapshot>
) -> RaftStoreResult<()>
fn broadcast_normal(&self, msg_gen: impl FnMut() -> PeerMsg<EK>)
[src]
fn send_casual_msg(
&self,
region_id: u64,
msg: CasualMessage<EK>
) -> RaftStoreResult<()>
[src]
&self,
region_id: u64,
msg: CasualMessage<EK>
) -> RaftStoreResult<()>
fn send_store_msg(&self, msg: StoreMsg<EK>) -> RaftStoreResult<()>
[src]
fn send_command(
&self,
req: RaftCmdRequest,
cb: Callback<EK::Snapshot>
) -> RaftStoreResult<()>
[src]
&self,
req: RaftCmdRequest,
cb: Callback<EK::Snapshot>
) -> RaftStoreResult<()>
fn send_command_with_deadline(
&self,
req: RaftCmdRequest,
cb: Callback<EK::Snapshot>,
deadline: Deadline
) -> RaftStoreResult<()>
[src]
&self,
req: RaftCmdRequest,
cb: Callback<EK::Snapshot>,
deadline: Deadline
) -> RaftStoreResult<()>
fn report_unreachable(
&self,
region_id: u64,
to_peer_id: u64
) -> RaftStoreResult<()>
[src]
&self,
region_id: u64,
to_peer_id: u64
) -> RaftStoreResult<()>
fn report_snapshot_status(
&self,
region_id: u64,
to_peer_id: u64,
status: SnapshotStatus
) -> RaftStoreResult<()>
[src]
&self,
region_id: u64,
to_peer_id: u64,
status: SnapshotStatus
) -> RaftStoreResult<()>
fn broadcast_unreachable(&self, store_id: u64)
[src]
fn report_resolved(&self, store_id: u64, group_id: u64)
[src]
impl<EK, ER> StoreRouter<EK> for RaftRouter<EK, ER> where
EK: KvEngine,
ER: RaftEngine,
[src]
EK: KvEngine,
ER: RaftEngine,
Auto Trait Implementations
impl<EK, ER> !RefUnwindSafe for RaftRouter<EK, ER>
impl<EK, ER> Send for RaftRouter<EK, ER>
impl<EK, ER> !Sync for RaftRouter<EK, ER>
impl<EK, ER> Unpin for RaftRouter<EK, ER>
impl<EK, ER> UnwindSafe for RaftRouter<EK, ER>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src]
W: ConvertTo<V>,
pub fn convert_from(ctx: &mut EvalContext, from: W) -> Result<V, Error>
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,