pub enum Author {
External(Address),
Sealer(Box<dyn EngineSigner>),
}
Expand description
Block sealing mechanism
Variants
External(Address)
Sealing block is external and we only need a reward beneficiary (i.e. PoW)
Sealer(Box<dyn EngineSigner>)
Sealing is done internally, we need a way to create signatures to seal block (i.e. PoA)
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Author
impl Send for Author
impl Sync for Author
impl Unpin for Author
impl !UnwindSafe for Author
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