Enum WireError

Source
pub enum WireError {
Show 24 variants Blockchain(BlockchainError), ChannelSend(SendError<NodeRequest>), PeerError(PeerError), CoinbaseNotMatured, PeerNotFound, NoPeersAvailable, PeerMisbehaving, AnchorFileNotFound, PeerAlreadyExists(IpAddr, u16), PeerNotFoundAtAddress(IpAddr, u16), Io(Error), Serde(Error), NoUtreexoPeersAvailable, NoPeerToSendRequest, PeerTimeout, CompactBlockFiltersError(IterableFilterStoreError), PoisonedLock, InvalidAddress(AddrParseError), Transport(TransportError), ResponseSendError, NoAddressesAvailable, BlockNotFound, BlockProofNotFound, LeafDataNotFound,
}

Variants§

§

Blockchain(BlockchainError)

Blockchain-related error.

This error kind is returned by our ChainState.

§

ChannelSend(SendError<NodeRequest>)

Error while writing into a channel

§

PeerError(PeerError)

Peer error

§

CoinbaseNotMatured

Coinbase isn’t mature

§

PeerNotFound

Peer not found in our current connections

§

NoPeersAvailable

We don’t have any peers that could fulfill such request.

§

PeerMisbehaving

Our peer is misbehaving

§

AnchorFileNotFound

Failed to init Utreexo peers: anchors.json does not exist yet

§

PeerAlreadyExists(IpAddr, u16)

Peer already exists in our peers list

§

PeerNotFoundAtAddress(IpAddr, u16)

Peer not found with this given address and port, in our peer list

§

Io(Error)

Generic io error

§

Serde(Error)

JSON (de)serialization error

§

NoUtreexoPeersAvailable

Failed to save Utreexo peers: no peers to save to anchors.json

§

NoPeerToSendRequest

We couldn’t find a peer to send a request

§

PeerTimeout

Peer timed out some request

§

CompactBlockFiltersError(IterableFilterStoreError)

Compact block filters storage error

§

PoisonedLock

Poisoned lock

§

InvalidAddress(AddrParseError)

We couldn’t parse the provided address

§

Transport(TransportError)

Transport error

§

ResponseSendError

Can’t send back response for user request

§

NoAddressesAvailable

No addresses available to connect to

§

BlockNotFound

We tried to work on a block we don’t have. This is a bug!

§

BlockProofNotFound

We tried to work on a block that we don’t have a proof for yet. This is a bug!

§

LeafDataNotFound

Couldn’t find the leaf data for a block

Trait Implementations§

Source§

impl Debug for WireError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for WireError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AddrParseError> for WireError

Source§

fn from(e: AddrParseError) -> Self

Converts to this type from the input type.
Source§

impl From<BlockchainError> for WireError

Source§

fn from(e: BlockchainError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for WireError

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for WireError

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<IterableFilterStoreError> for WireError

Source§

fn from(e: IterableFilterStoreError) -> Self

Converts to this type from the input type.
Source§

impl From<PeerError> for WireError

Source§

fn from(e: PeerError) -> Self

Converts to this type from the input type.
Source§

impl From<RecvError> for WireError

Source§

fn from(_: RecvError) -> Self

Converts to this type from the input type.
Source§

impl From<SendError<NodeRequest>> for WireError

Source§

fn from(e: SendError<NodeRequest>) -> Self

Converts to this type from the input type.
Source§

impl From<TransportError> for WireError

Source§

fn from(e: TransportError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more