Trait photonio_uring::io::Write

source ·
pub trait Write {
    type Write<'a>: 'a + Future<Output = Result<usize, Error>>
    where
        Self: 'a
; fn write<'a>(&'a mut self, buf: &'a [u8]) -> Self::Write<'a>; }
Expand description

Writes some bytes into an object.

Required Associated Types

A future that resolves to the result of Self::write.

Required Methods

Writes some bytes from buf into this object.

Returns the number of bytes written.

Implementors