TryWrite

Trait TryWrite 

Source
pub trait TryWrite: ErrorType {
    // Required method
    fn try_write(
        &mut self,
        buf: &[u8],
    ) -> impl Future<Output = Result<usize, Self::Error>>;
}

Required Methods§

Source

fn try_write( &mut self, buf: &[u8], ) -> impl Future<Output = Result<usize, Self::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, const N: usize> TryWrite for ClientConnection<'a, N>

Source§

impl<'a, const N: usize> TryWrite for ServerConnection<'a, N>

Source§

impl<T> TryWrite for T
where T: Write + WriteReady,

Source§

impl<T: ToSocketAddrs> TryWrite for StdNetworkConnection<T>

Source§

impl<const N: usize> TryWrite for BufferedStream<N>