oberien
2545237309
doc(read_until): Fix typo in doc
2016-10-04 13:34:25 +02:00
oberien
d2440a4059
fix(read_until): Make read_until resemble BufRead::read_until
2016-09-30 22:12:56 +02:00
oberien
ce8a9d460e
feat(io): Add read_until
2016-09-30 22:06:43 +02:00
Alex Crichton
866dad2e85
Merge pull request #29 from 3Hren/master
...
Add `read` free function to read some bytes
2016-09-30 10:14:10 -07:00
Evgeny Safronov
f69f748470
chore: fix panic string
2016-09-30 13:20:22 +03:00
Evgeny Safronov
42bbe86cb6
refactor: rename ReadSome to Read
...
Also `try_nb!` is used.
2016-09-30 13:14:41 +03:00
Evgeny Safronov
4b3472ceae
refactor: rename, also make EOF as a valid result
2016-09-29 12:19:20 +03:00
Alex Crichton
418a973520
Add poll_{read,write} on halves
...
Closes #32
2016-09-14 11:14:18 -07:00
Evgeny Safronov
fb497aba44
Add read_some free function to read some bytes
2016-09-12 19:52:44 +03:00
Carl Lerche
0000210e0c
Add io::FramedIo
2016-09-08 23:25:17 -07:00
Alex Crichton
e60002b653
Tweak TaskIo wording and such
...
* Remove TaskIo
* task_split -> split
* TaskIoRead -> ReadHalf
* TaskIoWrite -> WriteHalf
Closes #18
2016-09-07 22:12:14 -07:00
Alex Crichton
6c045d31ac
Reorganize the entire crate:
...
Renamed APIs
* Loop => reactor::Core
* LoopHandle => reactor::Handle
* LoopPin => reactor::Pinned
* TcpStream => net::TcpStream
* TcpListener => net::TcpListener
* UdpSocket => net::UdpSocket
* Sender => channel::Sender
* Receiver => channel::Receiver
* Timeout => reactor::Timeout
* ReadinessStream => reactor::PollEvented
* All `LoopHandle` methods to construct objects are now free functions on the
associated types, e.g. `LoopHandle::tcp_listen` is now `TcpListener::bind`
* All APIs taking a `Handle` now take a `Handle` as the last argument
* All future-returning APIs now return concrete types instead of trait objects
Added APIs
* io::Io trait -- Read + Write + ability to poll
Removed without replacement:
* AddSource
* AddTimeout
* IoToken
* TimeoutToken
Closes #3
Closes #6
2016-09-07 22:12:14 -07:00
Corey Farwell
d7f76ca549
Add documentation links.
2016-09-07 21:19:34 -04:00
Alex Crichton
815dc803db
Merge pull request #19 from kamalmarhubi/read-exact-doc
...
docs: Fix copypasta in read_exact docs
2016-09-07 15:25:40 -07:00
Kamal Marhubi
abf4521300
docs: Fix copypasta in read_exact docs
2016-09-07 18:12:09 -04:00
Alex Crichton
3794cf7f1d
Update with Poll/Async changes
2016-09-02 12:17:38 -07:00
Alex Crichton
330ab823b0
Update to futures master
...
* Remove `LoopData` as it's no longer necessary
* Add `LoopHandle::spawn` to spawn new futures onto an event loop
* Add `LoopData::spawn` to also spawn new futures onto an event loop
* Rejigger the implementation of the event loop a bit (make a slab of futures),
but otherwise everything else is pretty constant.
2016-08-31 19:00:42 -07:00
Simon Bernier St-Pierre
32557cd832
fix typo in panic message
2016-08-26 21:47:50 -04:00
Alex Crichton
f107c8d860
Rename to tokio-core, add in futures-io
...
Renames the futures-mio crate to tokio-core, pulls in the futures-io crate under
an `io` module, and gets everything compiling.
2016-08-26 14:39:47 -07:00