pub enum GraphSyncError {
DecodeError(DecodeError),
LightningError(LightningError),
}
Expand description
All-encompassing standard error type that processing can return
Variants§
DecodeError(DecodeError)
Error trying to read the update data, typically due to an erroneous data length indication that is greater than the actual amount of data provided
LightningError(LightningError)
Error applying the patch to the network graph, usually the result of updates that are too old or missing prerequisite data to the application of updates out of order
Trait Implementations§
Source§impl Debug for GraphSyncError
impl Debug for GraphSyncError
Source§impl From<DecodeError> for GraphSyncError
impl From<DecodeError> for GraphSyncError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for GraphSyncError
impl From<Error> for GraphSyncError
Source§impl From<Error> for GraphSyncError
impl From<Error> for GraphSyncError
Source§impl From<LightningError> for GraphSyncError
impl From<LightningError> for GraphSyncError
Source§fn from(error: LightningError) -> Self
fn from(error: LightningError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphSyncError
impl RefUnwindSafe for GraphSyncError
impl Send for GraphSyncError
impl Sync for GraphSyncError
impl Unpin for GraphSyncError
impl UnwindSafe for GraphSyncError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more