Trait ctf_pwn::io::PipeWriteExt

source ·
pub trait PipeWriteExt: AsyncWrite {
    // Provided methods
    async fn write_line<T: AsRef<[u8]>>(
        &mut self,
        text: T
    ) -> Result<usize, PipeError>
       where Self: Unpin { ... }
    async fn write_line_crlf<T: AsRef<[u8]>>(
        &mut self,
        text: T
    ) -> Result<usize, PipeError>
       where Self: Unpin { ... }
    async fn write_flush<T: AsRef<[u8]>>(
        &mut self,
        data: T
    ) -> Result<usize, PipeError>
       where Self: Unpin { ... }
    async fn write_all_flush<T: AsRef<[u8]>>(
        &mut self,
        data: T
    ) -> Result<(), PipeError>
       where Self: Unpin { ... }
    async fn write_ansi_command<T: Command>(
        &mut self,
        command: T
    ) -> Result<usize, PipeError>
       where Self: Unpin { ... }
}

Provided Methods§

source

async fn write_line<T: AsRef<[u8]>>( &mut self, text: T ) -> Result<usize, PipeError>
where Self: Unpin,

source

async fn write_line_crlf<T: AsRef<[u8]>>( &mut self, text: T ) -> Result<usize, PipeError>
where Self: Unpin,

source

async fn write_flush<T: AsRef<[u8]>>( &mut self, data: T ) -> Result<usize, PipeError>
where Self: Unpin,

source

async fn write_all_flush<T: AsRef<[u8]>>( &mut self, data: T ) -> Result<(), PipeError>
where Self: Unpin,

source

async fn write_ansi_command<T: Command>( &mut self, command: T ) -> Result<usize, PipeError>
where Self: Unpin,

Object Safety§

This trait is not object safe.

Implementors§