Struct asio::posix::StreamDescriptor [] [src]

pub struct StreamDescriptor {
    // some fields omitted
}

Methods

impl StreamDescriptor
[src]

unsafe fn from_raw_fd(io: &IoService, fd: RawFd) -> StreamDescriptor

fn cancel(&self)

fn get_non_blocking(&self) -> Result<bool>

fn io_control<C: IoControl>(&self, cmd: &mut C) -> Result<()>

fn set_non_blocking(&self, on: bool) -> Result<()>

Trait Implementations

impl Stream for StreamDescriptor
[src]

fn async_read_some<F: Handler<usize>>(&self, buf: &mut [u8], handler: F)

fn async_write_some<F: Handler<usize>>(&self, buf: &[u8], handler: F)

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

fn write_some(&self, buf: &[u8]) -> Result<usize>

impl IoObject for StreamDescriptor
[src]

fn io_service(&self) -> &IoService

Returns a IoService associated with this object.

impl AsRawFd for StreamDescriptor
[src]

fn as_raw_fd(&self) -> RawFd

Extracts the raw file descriptor. Read more