pub enum Error {
Show 13 variants
SocketIo(ErrorKind),
Zmq(Error),
ServiceOffline,
RequiresLocalSocket,
OversizedFrame(usize),
FrameTooSmall(usize),
FrameBroken(&'static str),
InvalidLength {
expected: u16,
actual: u16,
},
NoNoiseHeader,
TorNotSupportedYet,
TimedOut,
Handshake(HandshakeError),
KeygenFeatureRequired(&'static str),
}
Expand description
Transport protocol-level errors
Variants§
SocketIo(ErrorKind)
I/O socket error, generated by underlying socket implementation (POSIX or TCP). Error type is {_0:?}
Zmq(Error)
ZMQ socket error, type {0}
ServiceOffline
service is offline or not responding
RequiresLocalSocket
the function requires that the connecting socket must be present on the the same machine, i.e. it should be a raw POSIX socket or IPC & Inproc ZMQ socket
OversizedFrame(usize)
the provided frame size ({0}) exceeds frame size limit of MAX_FRAME_SIZE bytes
FrameTooSmall(usize)
frame size {0} is less than minimal (34 bytes)
FrameBroken(&'static str)
frame structure broken: {0}
InvalidLength
read length {actual} is not equal to the expected length {expected}
NoNoiseHeader
message does not contain Noise_XK length header
TorNotSupportedYet
connections over Tor protocol are not yet supported
TimedOut
read or write attempt exceeded socket timeout
Handshake(HandshakeError)
failed Noise_XK handshake due to {0}
KeygenFeatureRequired(&'static str)
use of {0} API requires compilatino with keygen
feature enabled