Enum cardano_net::packet::ProtocolError
source · [−]pub enum ProtocolError {
HandshakePacketError(DecodeError),
IoError(Error),
CBORError(DecodeError),
StreamError {
expecting: usize,
got: usize,
},
UnexpectedVariant(String, String),
TxSendFailed(u16),
}
Variants
HandshakePacketError(DecodeError)
IoError(Error)
CBORError(DecodeError)
StreamError
UnexpectedVariant(String, String)
TxSendFailed(u16)
Trait Implementations
sourceimpl Debug for ProtocolError
impl Debug for ProtocolError
sourceimpl Display for ProtocolError
impl Display for ProtocolError
sourceimpl Error for ProtocolError
impl Error for ProtocolError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecodeError> for ProtocolError
impl From<DecodeError> for ProtocolError
sourcefn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ProtocolError
impl From<Error> for ProtocolError
sourceimpl From<ProtocolError> for NetworkError
impl From<ProtocolError> for NetworkError
sourcefn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl !UnwindSafe for ProtocolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more