pub enum FragmentStatus {
Pending,
Rejected {
reason: String,
},
InABlock {
date: BlockDate,
block: Hash,
},
}
Expand description
status of the fragment within the blockchain or the pool
Variants§
Pending
the fragment is yet to be processed
Rejected
the fragment has been rejected and won’t be added in a block
InABlock
The fragment has been added in a block
Implementations§
source§impl FragmentStatus
impl FragmentStatus
pub fn is_pending(&self) -> bool
pub fn is_rejected(&self) -> bool
pub fn is_in_a_block(&self) -> bool
Trait Implementations§
source§impl Clone for FragmentStatus
impl Clone for FragmentStatus
source§fn clone(&self) -> FragmentStatus
fn clone(&self) -> FragmentStatus
Returns a copy of the value. Read more
1.0.0 · 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 FragmentStatus
impl Debug for FragmentStatus
source§impl<'de> Deserialize<'de> for FragmentStatus
impl<'de> Deserialize<'de> for FragmentStatus
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
source§impl Hash for FragmentStatus
impl Hash for FragmentStatus
source§impl Ord for FragmentStatus
impl Ord for FragmentStatus
source§fn cmp(&self, other: &FragmentStatus) -> Ordering
fn cmp(&self, other: &FragmentStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FragmentStatus> for FragmentStatus
impl PartialEq<FragmentStatus> for FragmentStatus
source§fn eq(&self, other: &FragmentStatus) -> bool
fn eq(&self, other: &FragmentStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FragmentStatus> for FragmentStatus
impl PartialOrd<FragmentStatus> for FragmentStatus
source§fn partial_cmp(&self, other: &FragmentStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &FragmentStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FragmentStatus
impl Serialize for FragmentStatus
impl Eq for FragmentStatus
impl StructuralEq for FragmentStatus
impl StructuralPartialEq for FragmentStatus
Auto Trait Implementations§
impl RefUnwindSafe for FragmentStatus
impl Send for FragmentStatus
impl Sync for FragmentStatus
impl Unpin for FragmentStatus
impl UnwindSafe for FragmentStatus
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