Struct overlord::overlord::OverlordHandler
source · [−]pub struct OverlordHandler<T: Codec>(_);
Expand description
An overlord handler to send messages to an overlord instance.
Implementations
sourceimpl<T: Codec> OverlordHandler<T>
impl<T: Codec> OverlordHandler<T>
sourcepub fn send_msg(&self, ctx: Context, msg: OverlordMsg<T>) -> ConsensusResult<()>
pub fn send_msg(&self, ctx: Context, msg: OverlordMsg<T>) -> ConsensusResult<()>
Send overlord message to the instance. Return Err()
when the message channel is closed.
Trait Implementations
sourceimpl<T: Clone + Codec> Clone for OverlordHandler<T>
impl<T: Clone + Codec> Clone for OverlordHandler<T>
sourcefn clone(&self) -> OverlordHandler<T>
fn clone(&self) -> OverlordHandler<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for OverlordHandler<T>
impl<T> Send for OverlordHandler<T>
impl<T> Sync for OverlordHandler<T>
impl<T> Unpin for OverlordHandler<T>
impl<T> !UnwindSafe for OverlordHandler<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more