Struct test_raftstore::transport_simulate::SimulateTransport [−][src]
Fields
filters: Arc<RwLock<Vec<Box<dyn Filter>>>>
ch: C
Implementations
impl<C> SimulateTransport<C>
[src]
pub fn new(ch: C) -> SimulateTransport<C>
[src]
pub fn clear_filters(&mut self)
[src]
pub fn add_filter(&mut self, filter: Box<dyn Filter>)
[src]
Trait Implementations
impl<C: RaftStoreRouter<RocksEngine>> CasualRouter<RocksEngine> for SimulateTransport<C>
[src]
fn send(&self, region_id: u64, msg: CasualMessage<RocksEngine>) -> Result<()>
[src]
impl<C: Clone> Clone for SimulateTransport<C>
[src]
fn clone(&self) -> SimulateTransport<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: LocalReadRouter<RocksEngine>> LocalReadRouter<RocksEngine> for SimulateTransport<C>
[src]
fn read(
&self,
read_id: Option<ThreadReadId>,
req: RaftCmdRequest,
cb: Callback<RocksSnapshot>
) -> RaftStoreResult<()>
[src]
&self,
read_id: Option<ThreadReadId>,
req: RaftCmdRequest,
cb: Callback<RocksSnapshot>
) -> RaftStoreResult<()>
fn release_snapshot_cache(&self)
[src]
impl<C: RaftStoreRouter<RocksEngine>> ProposalRouter<RocksSnapshot> for SimulateTransport<C>
[src]
fn send(
&self,
cmd: RaftCommand<RocksSnapshot>
) -> Result<(), TrySendError<RaftCommand<RocksSnapshot>>>
[src]
&self,
cmd: RaftCommand<RocksSnapshot>
) -> Result<(), TrySendError<RaftCommand<RocksSnapshot>>>
impl<C: RaftStoreRouter<RocksEngine>> RaftStoreRouter<RocksEngine> for SimulateTransport<C>
[src]
fn send_raft_msg(&self, msg: RaftMessage) -> Result<()>
[src]
fn significant_send(
&self,
region_id: u64,
msg: SignificantMsg<RocksSnapshot>
) -> Result<()>
[src]
&self,
region_id: u64,
msg: SignificantMsg<RocksSnapshot>
) -> Result<()>
fn broadcast_normal(&self, _: impl FnMut() -> PeerMsg<RocksEngine>)
[src]
pub fn send_casual_msg(
&self,
region_id: u64,
msg: CasualMessage<EK>
) -> Result<(), Error>
[src]
&self,
region_id: u64,
msg: CasualMessage<EK>
) -> Result<(), Error>
pub fn send_store_msg(&self, msg: StoreMsg<EK>) -> Result<(), Error>
[src]
pub fn send_command(
&self,
req: RaftCmdRequest,
cb: Callback<<EK as KvEngine>::Snapshot>
) -> Result<(), Error>
[src]
&self,
req: RaftCmdRequest,
cb: Callback<<EK as KvEngine>::Snapshot>
) -> Result<(), Error>
pub fn send_command_with_deadline(
&self,
req: RaftCmdRequest,
cb: Callback<<EK as KvEngine>::Snapshot>,
deadline: Deadline
) -> Result<(), Error>
[src]
&self,
req: RaftCmdRequest,
cb: Callback<<EK as KvEngine>::Snapshot>,
deadline: Deadline
) -> Result<(), Error>
pub fn report_unreachable(
&self,
region_id: u64,
to_peer_id: u64
) -> Result<(), Error>
[src]
&self,
region_id: u64,
to_peer_id: u64
) -> Result<(), Error>
pub fn report_snapshot_status(
&self,
region_id: u64,
to_peer_id: u64,
status: SnapshotStatus
) -> Result<(), Error>
[src]
&self,
region_id: u64,
to_peer_id: u64,
status: SnapshotStatus
) -> Result<(), Error>
pub fn broadcast_unreachable(&self, store_id: u64)
[src]
pub fn report_resolved(&self, store_id: u64, group_id: u64)
[src]
impl<C: RaftStoreRouter<RocksEngine>> StoreRouter<RocksEngine> for SimulateTransport<C>
[src]
impl<C: Transport> Transport for SimulateTransport<C>
[src]
fn send(&mut self, m: RaftMessage) -> Result<()>
[src]
fn need_flush(&self) -> bool
[src]
fn flush(&mut self)
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for SimulateTransport<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for SimulateTransport<C> where
C: Send,
C: Send,
impl<C> Sync for SimulateTransport<C> where
C: Sync,
C: Sync,
impl<C> Unpin for SimulateTransport<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for SimulateTransport<C> where
C: UnwindSafe,
C: UnwindSafe,
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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?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>,