pub enum Error {
ClientError(String),
CryptoConfigError(Error),
GeneralError(String),
IdleTimeoutParsingError(VarIntBoundsExceeded),
JsonRpcRequestParsingError(JsonRpcResponse, JsonRpcResponseStream),
RemoteEndpointError(String),
ServerError(String),
Webpki(Error),
}
Variants§
ClientError(String)
CryptoConfigError(Error)
GeneralError(String)
IdleTimeoutParsingError(VarIntBoundsExceeded)
JsonRpcRequestParsingError(JsonRpcResponse, JsonRpcResponseStream)
For use when there’s a problem parsing a request that was sent to the server.
The response object will indicate the problem and the stream can be used to send it back to the client.
RemoteEndpointError(String)
ServerError(String)
Webpki(Error)
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<VarIntBoundsExceeded> for Error
impl From<VarIntBoundsExceeded> for Error
source§fn from(source: VarIntBoundsExceeded) -> Self
fn from(source: VarIntBoundsExceeded) -> Self
Converts to this type from the input type.