Trait raftstore::coprocessor::dispatcher::ClonableObserver[][src]

pub trait ClonableObserver: 'static + Send {
    type Ob: ?Sized + Send;
    fn inner(&self) -> &Self::Ob;
fn inner_mut(&mut self) -> &mut Self::Ob;
fn box_clone(&self) -> Box<dyn ClonableObserver<Ob = Self::Ob> + Send>

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;
; }

Associated Types

type Ob: ?Sized + Send[src]

Loading content...

Required methods

fn inner(&self) -> &Self::Ob[src]

fn inner_mut(&mut self) -> &mut Self::Ob[src]

fn box_clone(&self) -> Box<dyn ClonableObserver<Ob = Self::Ob> + Send>

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]

Loading content...

Implementors

impl<E: KvEngine + 'static + Send, T: 'static + ConsistencyCheckObserver<E> + Clone> ClonableObserver for WrappedConsistencyCheckObserver<E, T>[src]

type Ob = dyn ConsistencyCheckObserver<E>

impl<E: KvEngine + 'static + Send, T: 'static + CmdObserver<E> + Clone> ClonableObserver for WrappedCmdObserver<E, T>[src]

type Ob = dyn CmdObserver<E>

impl<E: KvEngine + 'static + Send, T: 'static + SplitCheckObserver<E> + Clone> ClonableObserver for WrappedSplitCheckObserver<E, T>[src]

type Ob = dyn SplitCheckObserver<E>

impl<T: 'static + AdminObserver + Clone> ClonableObserver for WrappedAdminObserver<T>[src]

type Ob = dyn AdminObserver

impl<T: 'static + ApplySnapshotObserver + Clone> ClonableObserver for WrappedApplySnapshotObserver<T>[src]

type Ob = dyn ApplySnapshotObserver

impl<T: 'static + QueryObserver + Clone> ClonableObserver for WrappedQueryObserver<T>[src]

type Ob = dyn QueryObserver

impl<T: 'static + ReadIndexObserver + Clone> ClonableObserver for WrappedReadIndexObserver<T>[src]

type Ob = dyn ReadIndexObserver

impl<T: 'static + RegionChangeObserver + Clone> ClonableObserver for WrappedRegionChangeObserver<T>[src]

type Ob = dyn RegionChangeObserver

impl<T: 'static + RoleObserver + Clone> ClonableObserver for WrappedRoleObserver<T>[src]

type Ob = dyn RoleObserver

Loading content...