Enum lumina_node::p2p::HeaderExError
source · pub enum HeaderExError {
HeaderNotFound,
InvalidResponse,
InvalidRequest,
InboundFailure(InboundFailure),
OutboundFailure(OutboundFailure),
}Expand description
Representation of all the errors that can occur when interacting with the header-ex.
Variants§
HeaderNotFound
Header not found.
InvalidResponse
The response is invalid.
InvalidRequest
The request is invalid.
InboundFailure(InboundFailure)
Error when handling connection from the client.
OutboundFailure(OutboundFailure)
Error when handling connection to the server.
Trait Implementations§
source§impl Debug for HeaderExError
impl Debug for HeaderExError
source§impl Display for HeaderExError
impl Display for HeaderExError
source§impl Error for HeaderExError
impl Error for HeaderExError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<HeaderExError> for P2pError
impl From<HeaderExError> for P2pError
source§fn from(source: HeaderExError) -> Self
fn from(source: HeaderExError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HeaderExError
impl Send for HeaderExError
impl Sync for HeaderExError
impl Unpin for HeaderExError
impl !UnwindSafe for HeaderExError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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