Struct rotor::mio::unix::UnixStream [] [src]

pub struct UnixStream {
    // some fields omitted
}

Methods

impl UnixStream

fn connect<P>(path: &P) -> Result<UnixStream, Error> where P: AsRef<Path> + ?Sized

fn try_clone(&self) -> Result<UnixStream, Error>

fn read_recv_fd(&mut self, buf: &mut [u8]) -> Result<(usize, Option<i32>), Error>

fn try_read_recv_fd(&mut self, buf: &mut [u8]) -> Result<Option<(usize, Option<i32>)>, Error>

fn try_read_buf_recv_fd<B>(&mut self, buf: &mut B) -> Result<Option<(usize, Option<i32>)>, Error> where B: MutBuf

fn write_send_fd(&mut self, buf: &[u8], fd: i32) -> Result<usize, Error>

fn try_write_send_fd(&mut self, buf: &[u8], fd: i32) -> Result<Option<usize>, Error>

fn try_write_buf_send_fd<B>(&mut self, buf: &mut B, fd: i32) -> Result<Option<usize>, Error> where B: Buf

Trait Implementations

impl FromRawFd for UnixStream

unsafe fn from_raw_fd(fd: i32) -> UnixStream

impl AsRawFd for UnixStream

fn as_raw_fd(&self) -> i32

impl From<UnixSocket> for UnixStream

fn from(sys: UnixSocket) -> UnixStream

impl Evented for UnixStream

fn register(&self, selector: &mut Selector, token: Token, interest: EventSet, opts: PollOpt) -> Result<(), Error>

fn reregister(&self, selector: &mut Selector, token: Token, interest: EventSet, opts: PollOpt) -> Result<(), Error>

fn deregister(&self, selector: &mut Selector) -> Result<(), Error>

impl Write for UnixStream

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

fn flush(&mut self) -> Result<(), Error>

impl Read for UnixStream

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

Derived Implementations

impl Debug for UnixStream

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>