pub enum FloodsubDecodeError {
ReadError(ReadOneError),
ProtobufError(DecodeError),
InvalidPeerId,
}Expand description
Reach attempt interrupt errors.
Variants§
ReadError(ReadOneError)
Error when reading the packet from the socket.
ProtobufError(DecodeError)
Error when decoding the raw buffer into a protobuf.
InvalidPeerId
Error when parsing the PeerId in the message.
Trait Implementations§
Source§impl Debug for FloodsubDecodeError
impl Debug for FloodsubDecodeError
Source§impl Display for FloodsubDecodeError
impl Display for FloodsubDecodeError
Source§impl Error for FloodsubDecodeError
impl Error for FloodsubDecodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DecodeError> for FloodsubDecodeError
impl From<DecodeError> for FloodsubDecodeError
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ReadOneError> for FloodsubDecodeError
impl From<ReadOneError> for FloodsubDecodeError
Source§fn from(err: ReadOneError) -> Self
fn from(err: ReadOneError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FloodsubDecodeError
impl !UnwindSafe for FloodsubDecodeError
impl Freeze for FloodsubDecodeError
impl Send for FloodsubDecodeError
impl Sync for FloodsubDecodeError
impl Unpin for FloodsubDecodeError
impl UnsafeUnpin for FloodsubDecodeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more