update to rust master

fixing usage of a Private trait as bounds for a public trait
This commit is contained in:
Sean McArthur
2014-09-24 19:43:24 -07:00
parent 67f2a87dc3
commit 3259f7dce9
3 changed files with 8 additions and 17 deletions

View File

@@ -14,17 +14,6 @@ pub struct Fresh;
/// The write-status indicating headers have been written.
pub struct Streaming;
/// The write-status of a Request
pub trait WriteStatus: Private {}
impl WriteStatus for Fresh {}
impl WriteStatus for Streaming {}
// Only Fresh and Streaming can be WriteStatus
#[doc(hidden)]
trait Private {}
impl Private for Fresh {}
impl Private for Streaming {}
/// An abstraction to listen for connections on a certain port.
pub trait NetworkListener<S: NetworkStream, A: NetworkAcceptor<S>>: Listener<S, A> {
/// Bind to a socket.