Struct rustuv::net::TcpWatcher[src]

pub struct TcpWatcher {
    // some fields omitted
}

TCP implementation

Methods

impl TcpWatcher

fn new(io: &mut UvIoFactory) -> TcpWatcher

fn connect(io: &mut UvIoFactory, address: SocketAddr, timeout: Option<u64>) -> Result<TcpWatcher, UvError>

Trait Implementations

impl RtioSocket for TcpWatcher

fn socket_name(&mut self) -> Result<SocketAddr, IoError>

impl RtioTcpStream for TcpWatcher

fn read(&mut self, buf: &mut [u8]) -> Result<uint, IoError>

fn write(&mut self, buf: &[u8]) -> Result<(), IoError>

fn peer_name(&mut self) -> Result<SocketAddr, IoError>

fn control_congestion(&mut self) -> Result<(), IoError>

fn nodelay(&mut self) -> Result<(), IoError>

fn keepalive(&mut self, delay_in_seconds: uint) -> Result<(), IoError>

fn letdie(&mut self) -> Result<(), IoError>

fn clone(&self) -> Box<RtioTcpStream + Send>

fn close_read(&mut self) -> Result<(), IoError>

fn close_write(&mut self) -> Result<(), IoError>

fn set_timeout(&mut self, timeout: Option<u64>)

fn set_read_timeout(&mut self, ms: Option<u64>)

fn set_write_timeout(&mut self, ms: Option<u64>)

impl UvHandle<uv_tcp_t> for TcpWatcher

fn uv_handle(&self) -> *uv_tcp_t

fn uv_loop(&self) -> Loop

fn alloc(_: Option<Self>, ty: uv_handle_type) -> *T

unsafe fn from_uv_handle<'a>(h: &'a *T) -> &'a mut Self

fn install(~self) -> Box<Self>

fn close_async_(&mut self)

fn close(&mut self)

impl Drop for TcpWatcher

fn drop(&mut self)