[−][src]Enum ckb_sync::StatusCode
StatusCodes indicate whether a specific operation has been successfully completed. The StatusCode element is a 3-digit integer.
The first digest of the StatusCode defines the class of result:
- 1xx: Informational - Request received, continuing process
- 4xx: Malformed Error - The request contains malformed messages
- 5xx: Warning - The node warns about recoverable conditions
Variants
OK
Ignored
The node had already received and recorded this block as pending block
The node is requesting from other peers for this block, but no response yet
The node had already stored this block into database
The CompactBlock is older than what the node expects
The node cannot process the arrived CompactBlock successfully for lack of information of its parent
The node cannot process the arrived CompactBlock successfully for lack of parts of its transactions
CompactBlock short-ids collision
Malformed protocol message
Block verified failed or the block is already marked as invalid
Header verified failed or the header is already marked as invalid
Duplicated short-ids within a same CompactBlock
Missing cellbase as the first transaction within a CompactBlock
Duplicated prefilled transactions within a same CompactBlock
The prefilled transactions are out-of-order
Some of the prefilled transactions are out-of-index
Invalid uncle block
Unmatched Transaction Root
The length of BlockTransactions is unmatched with in pending_compact_blocks
The short-ids of BlockTransactions is unmatched with in pending_compact_blocks
The length of BlockUncles is unmatched with in pending_compact_blocks
The hash of uncles is unmatched
Cannot locate the common blocks based on the GetHeaders
Generic rate limit error
Errors returned from the tx-pool
Errors returned from the network layer
In-flight blocks limit exceeded
Implementations
impl StatusCode
[src]
pub fn with_context<S: ToString>(self, context: S) -> Status
[src]
TODO(doc): @driftluo
Trait Implementations
impl Clone for StatusCode
[src]
pub fn clone(&self) -> StatusCode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StatusCode
[src]
impl Debug for StatusCode
[src]
impl Eq for StatusCode
[src]
impl From<StatusCode> for Status
[src]
pub fn from(code: StatusCode) -> Self
[src]
impl PartialEq<StatusCode> for StatusCode
[src]
pub fn eq(&self, other: &StatusCode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for StatusCode
[src]
impl StructuralPartialEq for StatusCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,