pub enum Engine {
Null(NullEngine),
InstantSeal(Option<InstantSeal>),
Ethash(Ethash),
BasicAuthority(BasicAuthority),
AuthorityRound(AuthorityRound),
Clique(Clique),
}
Expand description
Engine deserialization.
Variants
Null(NullEngine)
Null engine.
InstantSeal(Option<InstantSeal>)
Instantly sealing engine.
Ethash(Ethash)
Ethash engine.
BasicAuthority(BasicAuthority)
BasicAuthority engine.
AuthorityRound(AuthorityRound)
AuthorityRound engine.
Clique(Clique)
Clique engine.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Engine
impl<'de> Deserialize<'de> for Engine
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Engine
Auto Trait Implementations
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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