Struct lightning_block_sync::BlockSourceError[][src]

pub struct BlockSourceError { /* fields omitted */ }

Error type for BlockSource requests.

Transient errors may be resolved when re-polling, but no attempt will be made to re-poll on persistent errors.

Implementations

impl BlockSourceError[src]

pub fn persistent<E>(error: E) -> Self where
    E: Into<Box<dyn Error + Send + Sync>>, 
[src]

Creates a new persistent error originated from the given error.

pub fn transient<E>(error: E) -> Self where
    E: Into<Box<dyn Error + Send + Sync>>, 
[src]

Creates a new transient error originated from the given error.

pub fn kind(&self) -> BlockSourceErrorKind[src]

Returns the kind of error.

pub fn into_inner(self) -> Box<dyn Error + Send + Sync>[src]

Converts the error into the underlying error.

Trait Implementations

impl Debug for BlockSourceError[src]

Auto Trait Implementations

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, 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.