pub enum Pow {
Dummy,
Eaglesong,
EaglesongBlake2b,
}
Expand description
The PoW engine traits bundled
Variants§
Dummy
Mocking dummy PoW engine
Eaglesong
The Eaglesong PoW engine Check details of Eaglesong from: https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0010-eaglesong/0010-eaglesong.md
EaglesongBlake2b
The Eaglesong PoW engine, similar to Eaglesong
, but using blake2b
hash as the final output.
Check details of blake2b from: https://tools.ietf.org/html/rfc7693 and blake2b-rs from: https://github.com/nervosnetwork/blake2b-rs
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pow
impl<'de> Deserialize<'de> for Pow
Source§fn 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 Eq for Pow
impl StructuralPartialEq for Pow
Auto Trait Implementations§
impl Freeze for Pow
impl RefUnwindSafe for Pow
impl Send for Pow
impl Sync for Pow
impl Unpin for Pow
impl UnwindSafe for Pow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)