Steven Fackler
cea7423cd3
Rename ConnectError::Ssl to Tls
2016-09-17 15:05:07 -07:00
Steven Fackler
ff853811cb
Use protocol's backend enum
2016-09-13 19:30:28 -07:00
Steven Fackler
fbcdd6b547
Rustfmt
2016-09-12 21:50:21 -07:00
Steven Fackler
96943d7e10
Switch over to protocol backend parser
...
We still have to keep our owned Backend enum around since SEME doesn't
work :'(
2016-09-11 21:27:13 -07:00
Steven Fackler
457d700639
Read message
2016-09-11 19:20:23 -07:00
Steven Fackler
82f708c5ff
Add a MessageStream
2016-09-11 17:19:06 -07:00
Steven Fackler
ad6fa4d0b1
More moves
2016-09-11 16:29:28 -07:00
Steven Fackler
842bdafe1f
Pull connect params out to its own module
2016-09-10 11:12:26 -07:00
Steven Fackler
bf1250eb78
Always support unix sockets
2016-09-10 10:31:43 -07:00
Steven Fackler
0704670493
Cleanup
2016-09-10 10:31:21 -07:00
Steven Fackler
f2cf6be6bc
Rename all features
...
You can't add dependencies to implicit features, so move them all just
in case.
2016-09-10 10:31:21 -07:00
Steven Fackler
2a6889fa0b
Rename SslMode to TlsMode
...
TLS has been a thing since 1999 - time to use it rather than SSL!
2016-09-10 10:30:47 -07:00
Steven Fackler
2e25862a66
Rename ssl stuff
2016-09-10 10:30:47 -07:00
Steven Fackler
606637be1c
Bump to 1.9, drop net2
2016-07-07 21:06:27 -07:00
Oliver Schneider
0bc8a6ec6f
address comments
2016-05-30 12:50:27 +02:00
Oliver Schneider
06b770917b
address clippy and rust lints
2016-05-27 12:35:00 +02:00
Steven Fackler
da8707a316
Drop Message suffix
2016-04-04 22:35:45 -07:00
Steven Fackler
d48fa83c19
Only enable unix socket stuff on unix with nightly
2016-03-29 21:24:45 -07:00
Steven Fackler
b0bed6ab4c
Add a nightly feature
...
Currently uses the UnixStream from the standard library
2016-03-27 13:03:19 -07:00
Steven Fackler
3ddcf87203
Simplify ConnectError
...
Same deal as Error
2016-01-02 15:50:11 -08:00
Steven Fackler
ccfba62b99
More cleanup
2015-12-29 15:16:15 -07:00
Steven Fackler
e9b8a75e45
Cleanup
2015-12-28 09:28:57 -07:00
Steven Fackler
740953aa65
Drop UFCS for set_read_timeout
...
The native method has been gone since 1.4.0
2015-12-27 10:18:30 -07:00
Steven Fackler
bb837bd872
Make the default notifications iterator read nonblocking
...
It is always super confusing as to when a notification that's been sent
to the client will actually show up in the old version of this iterator,
so it's best to have it see if there's anything waiting in the TCP
buffer.
Closes #149
2015-12-27 10:15:49 -07:00
Steven Fackler
c87b938065
Fix features
2015-12-25 20:38:22 -07:00
Steven Fackler
4f37625cd6
Shorten error variant names
...
No reason to repeat Error
2015-12-25 20:14:09 -07:00
Steven Fackler
a6d9a214a6
Require Debug for StreamWrapper
2015-12-13 23:27:32 -08:00
Steven Fackler
811b0ffde9
Restructure SslMode
...
This is a large breaking change but makes things make way more sense
2015-12-06 23:35:28 -08:00
Steven Fackler
4bdbcd8265
Impl NegotiateSsl for closures + rustfmt
2015-12-05 14:44:40 -08:00
Steven Fackler
67bace6fc0
Rustfmt
2015-11-15 19:54:01 -08:00
Steven Fackler
c4becf6a39
Read message with timeout backend support
2015-10-20 22:37:52 -07:00
Steven Fackler
57d91d6b61
cleanup
2015-07-04 15:36:34 -07:00
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