Client::poll_ready and send_request may return Connection Errors (#132)
Closes #131
This commit is contained in:
@@ -16,6 +16,9 @@ pub enum SendError {
|
||||
/// User error
|
||||
User(UserError),
|
||||
|
||||
/// Connection error prevents sending.
|
||||
Connection(Reason),
|
||||
|
||||
/// I/O error
|
||||
Io(io::Error),
|
||||
}
|
||||
@@ -80,6 +83,7 @@ impl error::Error for SendError {
|
||||
|
||||
match *self {
|
||||
User(ref e) => e.description(),
|
||||
Connection(ref reason) => reason.description(),
|
||||
Io(ref e) => e.description(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user