Struct lightning_block_sync::BlockSourceError [−][src]
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]
E: Into<Box<dyn Error + Send + Sync>>,
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]
E: Into<Box<dyn Error + Send + Sync>>,
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
Auto Trait Implementations
impl !RefUnwindSafe for BlockSourceError
impl Send for BlockSourceError
impl Sync for BlockSourceError
impl Unpin for BlockSourceError
impl !UnwindSafe for BlockSourceError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,