Derive thigs for error types
This commit is contained in:
parent
2b0a778846
commit
39343df472
|
|
@ -4,7 +4,7 @@ use std::io::IoError;
|
||||||
use ssl::ffi;
|
use ssl::ffi;
|
||||||
|
|
||||||
/// An SSL error
|
/// An SSL error
|
||||||
#[deriving(Show)]
|
#[deriving(Show, Clone, PartialEq, Eq)]
|
||||||
pub enum SslError {
|
pub enum SslError {
|
||||||
/// The underlying stream has reported an error
|
/// The underlying stream has reported an error
|
||||||
StreamError(IoError),
|
StreamError(IoError),
|
||||||
|
|
@ -15,7 +15,7 @@ pub enum SslError {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An error from the OpenSSL library
|
/// An error from the OpenSSL library
|
||||||
#[deriving(Show)]
|
#[deriving(Show, Clone, PartialEq, Eq)]
|
||||||
pub enum OpensslError {
|
pub enum OpensslError {
|
||||||
/// An unknown error
|
/// An unknown error
|
||||||
UnknownError {
|
UnknownError {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue