Enum finality_grandpa::voter::Callback
source · [−]Expand description
Callback used to pass information about the outcome of importing a given message (e.g. vote, commit, catch up). Useful to propagate data to the network after making sure the import is successful.
Variants
Blank
Default value.
Work(Box<dyn FnMut(O) + Send>)
Callback to execute given a processing outcome.
Implementations
Auto Trait Implementations
impl<O> !RefUnwindSafe for Callback<O>
impl<O> Send for Callback<O>
impl<O> !Sync for Callback<O>
impl<O> Unpin for Callback<O>
impl<O> !UnwindSafe for Callback<O>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more