Lines Matching refs:NetworkStream

23     type Stream: NetworkStream + Send + Clone;
64 pub trait NetworkStream: Read + Write + Any + Send + Typeable { interface
94 type Stream: Into<Box<NetworkStream + Send>>;
100 impl<T: NetworkStream + Send> From<T> for Box<NetworkStream + Send> {
101 fn from(s: T) -> Box<NetworkStream + Send> { in from()
106 impl fmt::Debug for Box<NetworkStream + Send> {
112 impl NetworkStream { implementation
121 unsafe fn downcast_unchecked<T: 'static>(self: Box<NetworkStream>) -> Box<T> { in downcast_unchecked()
122 let raw: *mut NetworkStream = mem::transmute(self); in downcast_unchecked()
127 impl NetworkStream { impl
157 pub fn downcast<T: Any>(self: Box<NetworkStream>) in downcast()
158 -> Result<Box<T>, Box<NetworkStream>> { in downcast() argument
167 impl NetworkStream + Send { impl
176 unsafe fn downcast_unchecked<T: 'static>(self: Box<NetworkStream + Send>) -> Box<T> { in downcast_unchecked()
177 let raw: *mut NetworkStream = mem::transmute(self); in downcast_unchecked()
182 impl NetworkStream + Send { impl
212 pub fn downcast<T: Any>(self: Box<NetworkStream + Send>) in downcast()
213 -> Result<Box<T>, Box<NetworkStream + Send>> { in downcast()
364 impl NetworkStream for HttpStream {
443 pub trait SslClient<T: NetworkStream + Send + Clone = HttpStream> {
445 type Stream: NetworkStream + Send + Clone;
451 pub trait SslServer<T: NetworkStream + Send + Clone = HttpStream> {
453 type Stream: NetworkStream + Send + Clone;
460 pub enum HttpsStream<S: NetworkStream> {
467 impl<S: NetworkStream> Read for HttpsStream<S> {
477 impl<S: NetworkStream> Write for HttpsStream<S> {
495 impl<S: NetworkStream> NetworkStream for HttpsStream<S> {
618 use super::{NetworkStream};
623 let stream: Box<NetworkStream + Send> = Box::new(MockStream::new()); in test_downcast_box_stream()
632 let stream: Box<NetworkStream + Send> = Box::new(MockStream::new()); in test_downcast_unchecked_box_stream()