Enum citadel::Error[][src]

#[non_exhaustive]pub enum Error {
    Io(IoError),
    Rpc(Error),
    Networking(Error),
    Transport(Error),
    NotSupported(TypeId),
    RgbNode(String),
    Electrum,
    StorageDriver(Error),
    CacheDriver(Error),
    ServerFailure(Failure),
    CacheInconsistency,
    StrictEncoding(Error),
    ConsensisEncoding,
    Base64(DecodeError),
    Bech32(Error),
    EmbeddedNodeInitError,
    UnexpectedApi,
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

generic I/O error - {0:?}

Rpc(Error)

RPC error - {0}

Networking(Error)

general networking error = {0}

Transport(Error)

transport-level interface error - {0}

NotSupported(TypeId)

provided RPC request (type id {0}) is not supported

RgbNode(String)

RGB node error - {0}

Electrum

electrum server error

StorageDriver(Error)

storage failure - {0}

CacheDriver(Error)

cache failure - {0}

ServerFailure(Failure)

server-reported failure

CacheInconsistency

internal cache inconsistency; you need to refresh balances and try again

StrictEncoding(Error)

strict data encoding data failure - {0}

ConsensisEncoding

in bitcoin consensus-encoded data failure

Base64(DecodeError)

base64 encoding failure - {0}

Bech32(Error)

Bech32 encoding failure

EmbeddedNodeInitError

embedded node initialization failure

UnexpectedApi

unexpected RPC API message; please check that the client version matches server

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl From<DecodeError> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Reply[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Failure> for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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