Struct rustuv::tty::TtyWatcher[src]

pub struct TtyWatcher {
    // some fields omitted
}

Methods

impl TtyWatcher

fn new(io: &mut UvIoFactory, fd: c_int, readable: bool) -> Result<TtyWatcher, UvError>

Trait Implementations

impl RtioTTY for TtyWatcher

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

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

fn set_raw(&mut self, raw: bool) -> IoResult<()>

fn get_winsize(&mut self) -> IoResult<(int, int)>

fn isatty(&self) -> bool

impl UvHandle<uv_tty_t> for TtyWatcher

fn uv_handle(&self) -> *uv_tty_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 TtyWatcher

fn drop(&mut self)