pub struct StreamAdaptor<S> { /* private fields */ }Expand description
An adaptor that implements a Stream for a type that implements X11rbStream.
Implementations§
Trait Implementations§
Source§impl<S: Debug> Debug for StreamAdaptor<S>
impl<S: Debug> Debug 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> Freeze for StreamAdaptor<S>where
S: Freeze,
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§
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