Struct tokio_pipe::PipeWrite [−][src]
pub struct PipeWrite(_);
Expand description
Pipe write
Implementations
pub fn poll_write_atomic(
self: Pin<&Self>,
cx: &mut Context<'_>,
buf: AtomicWriteBuffer<'_>
) -> Poll<Result<usize, Error>>
pub fn poll_write_atomic(
self: Pin<&Self>,
cx: &mut Context<'_>,
buf: AtomicWriteBuffer<'_>
) -> Poll<Result<usize, Error>>
Write buf atomically to the pipe, using guarantees provided in POSIX.1
pub fn poll_write_vectored_atomic(
self: Pin<&Self>,
cx: &mut Context<'_>,
bufs: AtomicWriteIoSlices<'_, '_>
) -> Poll<Result<usize, Error>>
Moves data between fd and pipe without copying between kernel address space and user address space.
It transfers up to len bytes of data from asyncfd_in to self.
asyncfd_in
- must be have O_NONBLOCK set, otherwise this function might block. There must not be other reader for that fd (or its duplicates).off_in
- If it is not None, then it would be updated on success.
Trait Implementations
Attempt to write bytes from buf
into the object. Read more
Attempts to flush the object, ensuring that any buffered data reach their destination. Read more
Initiates or attempts to shut down this writer, returning success when the I/O connection has completely shut down. Read more
Like poll_write
, except that it writes from a slice of buffers. Read more
Determines if this writer has an efficient poll_write_vectored
implementation. Read more
Constructs a new instance of Self
from the given raw file
descriptor. Read more
Auto Trait Implementations
impl !RefUnwindSafe for PipeWrite
impl !UnwindSafe for PipeWrite
Blanket Implementations
Writes a buffer into this writer, returning how many bytes were written. Read more
Writes a buffer into this writer, advancing the buffer’s internal cursor. Read more
fn write_all_buf<B>(&'a mut self, src: &'a mut B) -> WriteAllBuf<'a, Self, B> where
Self: Unpin,
B: Buf,
fn write_all_buf<B>(&'a mut self, src: &'a mut B) -> WriteAllBuf<'a, Self, B> where
Self: Unpin,
B: Buf,
Attempts to write an entire buffer into this writer. Read more
Attempts to write an entire buffer into this writer. Read more
Writes an unsigned 8-bit integer to the underlying writer. Read more
Writes an unsigned 8-bit integer to the underlying writer. Read more
Writes an unsigned 16-bit integer in big-endian order to the underlying writer. Read more
Writes a signed 16-bit integer in big-endian order to the underlying writer. Read more
Writes an unsigned 32-bit integer in big-endian order to the underlying writer. Read more
Writes a signed 32-bit integer in big-endian order to the underlying writer. Read more
Writes an unsigned 64-bit integer in big-endian order to the underlying writer. Read more
Writes an signed 64-bit integer in big-endian order to the underlying writer. Read more
Writes an unsigned 128-bit integer in big-endian order to the underlying writer. Read more
Writes an signed 128-bit integer in big-endian order to the underlying writer. Read more
Writes an 32-bit floating point type in big-endian order to the underlying writer. Read more
Writes an 64-bit floating point type in big-endian order to the underlying writer. Read more
Writes an unsigned 16-bit integer in little-endian order to the underlying writer. Read more
Writes a signed 16-bit integer in little-endian order to the underlying writer. Read more
Writes an unsigned 32-bit integer in little-endian order to the underlying writer. Read more
Writes a signed 32-bit integer in little-endian order to the underlying writer. Read more
Writes an unsigned 64-bit integer in little-endian order to the underlying writer. Read more
Writes an signed 64-bit integer in little-endian order to the underlying writer. Read more
Writes an unsigned 128-bit integer in little-endian order to the underlying writer. Read more
Writes an signed 128-bit integer in little-endian order to the underlying writer. Read more
Writes an 32-bit floating point type in little-endian order to the underlying writer. Read more
Writes an 64-bit floating point type in little-endian order to the underlying writer. Read more
Flushes this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
Mutably borrows from an owned value. Read more