Struct x11rb_async::rust_connection::StreamAdaptor
source · pub struct StreamAdaptor<S> { /* private fields */ }Expand description
An adaptor that implements a Stream for a type that implements X11rbStream.
Implementations§
source§impl<S: AsRaw> StreamAdaptor<S>
impl<S: AsRaw> StreamAdaptor<S>
Trait Implementations§
source§impl<S: AsRaw> AsRawFd for StreamAdaptor<S>
impl<S: AsRaw> AsRawFd for StreamAdaptor<S>
source§impl<S: X11rbStream> Stream for StreamAdaptor<S>
impl<S: X11rbStream> Stream for StreamAdaptor<S>
source§fn poll(&self, mode: PollMode) -> Result<()>
fn poll(&self, mode: PollMode) -> Result<()>
Waits for level-triggered read and/or write events on the stream. Read more
source§fn read(
&self,
buf: &mut [u8],
fd_storage: &mut Vec<RawFdContainer>
) -> Result<usize>
fn read( &self, buf: &mut [u8], fd_storage: &mut Vec<RawFdContainer> ) -> Result<usize>
Read some bytes and FDs from this reader without blocking, returning how many bytes
were read. Read more
source§fn write(&self, buf: &[u8], fds: &mut Vec<RawFdContainer>) -> Result<usize>
fn write(&self, buf: &[u8], fds: &mut Vec<RawFdContainer>) -> Result<usize>
Write a buffer and some FDs into this writer without blocking, returning how many
bytes were written. Read more
source§fn write_vectored(
&self,
bufs: &[IoSlice<'_>],
fds: &mut Vec<RawFdContainer>
) -> Result<usize>
fn write_vectored( &self, bufs: &[IoSlice<'_>], fds: &mut Vec<RawFdContainer> ) -> Result<usize>
Like
write, except that it writes from a slice of buffers. Like write, this
method must never block. Read moresource§impl<'a, S: 'a + X11rbStream + Sync> StreamBase<'a> for StreamAdaptor<S>
impl<'a, S: 'a + X11rbStream + Sync> StreamBase<'a> for StreamAdaptor<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for StreamAdaptor<S>where
S: RefUnwindSafe,
impl<S> Send for StreamAdaptor<S>where
S: Send,
impl<S> Sync for StreamAdaptor<S>where
S: Sync,
impl<S> Unpin for StreamAdaptor<S>
impl<S> UnwindSafe for StreamAdaptor<S>where
S: UnwindSafe,
Blanket Implementations§
§impl<T> AsRawFilelike for Twhere
T: AsRawFd,
impl<T> AsRawFilelike for Twhere
T: AsRawFd,
§fn as_raw_filelike(&self) -> i32
fn as_raw_filelike(&self) -> i32
Returns the raw value.
§impl<T> AsRawSocketlike for Twhere
T: AsRawFd,
impl<T> AsRawSocketlike for Twhere
T: AsRawFd,
§fn as_raw_socketlike(&self) -> i32
fn as_raw_socketlike(&self) -> i32
Returns the raw value.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more