Steven Fackler
f800835456
Move error types to error module
2015-05-25 22:47:25 -07:00
Steven Fackler
35197960b2
Restructure errors
...
WasNull and BadResponse are gone, and Conversion was added. IoError
covers the BadResponse case and Conversion is a more general version of
WasNull.
2015-05-22 21:21:30 -07:00
Steven Fackler
26e55ff2bc
Change negotiate_ssl back to taking &self
...
It's not clear that &mut is necessary and it makes connection calls a
bit nicer looking.
2015-05-13 15:17:37 -07:00
Steven Fackler
f957f10b19
Use a Box<NegotiateSsl> instead of a default param
...
Default parameter's aren't used in type inference yet, so the old setup
would result in overly verbose things like &mut SslMode::None::<NoSsl>.
In the future we can add the parameter back with a default of
Box<NegotiateSsl> to avoid forcing people to box stuff.
2015-05-13 15:14:37 -07:00
Steven Fackler
f30dd2f1c0
AsRawSocket, not AsRawHandle
2015-05-13 14:43:39 -07:00
Steven Fackler
f8ccb821d1
Implement AsRawFd/AsRawHandle for Stream
2015-05-13 14:43:39 -07:00
Steven Fackler
3c83d46ee4
Move types around and add docs
2015-05-13 14:43:03 -07:00