Struct runa_io::WriteWithFd
source · pub struct WriteWithFd { /* private fields */ }
Trait Implementations§
source§impl AsyncWriteWithFd for WriteWithFd
impl AsyncWriteWithFd for WriteWithFd
source§fn poll_write_with_fds<Fds: OwnedFds>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
fds: &mut Fds
) -> Poll<Result<usize>>
fn poll_write_with_fds<Fds: OwnedFds>( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], fds: &mut Fds ) -> Poll<Result<usize>>
Writes the given buffer and file descriptors to a unix stream. buf
must contain at least one byte of data. This function should not be
called concurrently from different tasks. Otherwise you risk
interleaving data, as well as causing tasks to wake each other up and
eatting CPU.