Enum stratum_server::Error
source · pub enum Error {
Show 14 variants
ConnectionBanned(Key),
SessionIDsExhausted,
PeerResetConnection,
Sender(SendError<SendInformation>),
Json(Error),
Io(Error),
MesssageSend(SendError),
AddrParseError(AddrParseError),
API(Error),
NotAuthorized,
StreamClosed(String),
StreamWrongPort,
MethodDoesntExist,
BrokenExHeader,
}Variants§
ConnectionBanned(Key)
SessionIDsExhausted
PeerResetConnection
Sender(SendError<SendInformation>)
Json(Error)
Io(Error)
MesssageSend(SendError)
AddrParseError(AddrParseError)
API(Error)
NotAuthorized
StreamClosed(String)
StreamWrongPort
MethodDoesntExist
BrokenExHeader
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<AddrParseError> for Error
impl From<AddrParseError> for Error
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.