pub enum SetBlockResult {
Ok,
Unknown,
HashFailed,
}Expand description
Result of setting a block hash in the Merkle tree state.
Variants§
Ok
Block hash matches the Merkle tree — all blocks in the piece verified.
Unknown
Piece-layer hash not yet available, or not all sibling blocks present; block hash stored for deferred verification.
HashFailed
Block hash doesn’t match the Merkle tree (bad peer).
Trait Implementations§
Source§impl Clone for SetBlockResult
impl Clone for SetBlockResult
Source§fn clone(&self) -> SetBlockResult
fn clone(&self) -> SetBlockResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetBlockResult
impl Debug for SetBlockResult
Source§impl PartialEq for SetBlockResult
impl PartialEq for SetBlockResult
Source§fn eq(&self, other: &SetBlockResult) -> bool
fn eq(&self, other: &SetBlockResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SetBlockResult
impl Eq for SetBlockResult
impl StructuralPartialEq for SetBlockResult
Auto Trait Implementations§
impl Freeze for SetBlockResult
impl RefUnwindSafe for SetBlockResult
impl Send for SetBlockResult
impl Sync for SetBlockResult
impl Unpin for SetBlockResult
impl UnsafeUnpin for SetBlockResult
impl UnwindSafe for SetBlockResult
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