Struct superchan::tcp::TcpReceiverExperimental
[-]
[+]
[src]
pub struct TcpReceiver<T> {
// some fields omitted
}TcpReceiver is the receiver half of a TCP connection.
Methods
impl<T> TcpReceiver<T>
fn new<A: ToSocketAddr>(addr: A) -> IoResult<TcpReceiver<T>>
Create a new TcpReceiver (aka TCP server) bound to the specified address.
Trait Implementations
impl<T> Receiver<T> for TcpReceiver<T> where T: Decodable<Decoder, DecoderError>
fn try_recv(&mut self) -> Result<T, ReceiverError>
Attempt to receive a value on the channel. This method blocks until a value is available.