about summary refs log tree commit diff
path: root/src/libstd/rt/io/mod.rs
AgeCommit message (Collapse)AuthorLines
2013-08-18More spelling corrections.Huon Wilson-1/+1
2013-08-16doc: convert remaining uses of core:: to std::.Huon Wilson-1/+1
2013-08-16doc: correct spelling in documentation.Huon Wilson-3/+3
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-1/+35
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-07-22std: minor timer cleanup based on feedbackJeff Olson-1/+1
2013-07-22std: add rt::io::TimerJeff Olson-0/+4
2013-06-23Split out starting a listener from accepting incoming connections.Eric Reed-6/+32
The Listener trait takes two type parameters, the type of connection and the type of Acceptor, and specifies only one method, listen, which consumes the listener and produces an Acceptor. The Acceptor trait takes one type parameter, the type of connection, and defines two methods. The accept() method waits for an incoming connection attempt and returns the result. The incoming() method creates an iterator over incoming connections and is a default method. Example: let listener = TcpListener.bind(addr); // Bind to a socket let acceptor = listener.listen(); // Start the listener for stream in acceptor.incoming() { // Process incoming connections forever (or until you break out of the loop) }
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+504
This only changes the directory names; it does not change the "real" metadata names.