pub enum Error {
HandshakeRemoteInvalidMessage,
CodecError(Error),
RecvError,
SendError,
SocketClosed,
}Expand description
Networking errors that can occur in SV2 connections
Variants§
HandshakeRemoteInvalidMessage
Invalid handshake message received from remote peer
CodecError(Error)
Error from the codec layer
RecvError
Error receiving from async channel
SendError
Error sending to async channel
SocketClosed
Socket was closed, likely by the peer
Trait Implementations§
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(e: CodecError) -> Self
fn from(e: CodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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