Struct asyncio::posix::StreamDescriptor
[−]
[src]
pub struct StreamDescriptor { /* fields omitted */ }
Typedef for the typical usage of a stream-oriented descriptor.
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>(&self, cmd: &mut C) -> Result<()> where C: IoControl
fn set_non_blocking(&self, on: bool) -> Result<()>
Trait Implementations
impl Stream for StreamDescriptor
[src]
fn async_read_some<F>(&self, buf: &mut [u8], handler: F) -> F::Output where F: Handler<usize>
fn async_write_some<F>(&self, buf: &[u8], handler: F) -> F::Output where F: Handler<usize>
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.