Trait PipeReadExt

Source
pub trait PipeReadExt: PipeRead {
Show 24 methods // Provided methods async fn recv(&mut self) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_all(&mut self) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_all_timeout( &mut self, timeout: Duration, keep_data: bool, ) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recvn(&mut self, len: usize) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recvn_fill(&mut self, len: usize) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recvn_exact(&mut self, len: usize) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_until<T: AsRef<[u8]>>( &mut self, delim: T, drop: bool, ) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_until_regex( &mut self, pattern: &str, drop: bool, ) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_regex(&mut self, pattern: &str) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_until_regex_split( &mut self, pattern: &str, ) -> Result<(Vec<u8>, Vec<u8>), PipeError> where Self: Unpin { ... } async fn recv_line(&mut self) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_line_crlf(&mut self) -> Result<Vec<u8>, PipeError> where Self: Unpin { ... } async fn recv_utf8(&mut self) -> Result<String, PipeError> where Self: Unpin { ... } async fn recv_until_utf8<T: AsRef<[u8]>>( &mut self, delim: T, drop: bool, ) -> Result<String, PipeError> where Self: Unpin { ... } async fn recv_until_regex_utf8( &mut self, pattern: &str, drop: bool, ) -> Result<String, PipeError> where Self: Unpin { ... } async fn recv_regex_utf8( &mut self, pattern: &str, ) -> Result<String, PipeError> where Self: Unpin { ... } async fn recv_line_utf8(&mut self) -> Result<String, PipeError> where Self: Unpin { ... } async fn recv_line_crlf_utf8(&mut self) -> Result<String, PipeError> where Self: Unpin { ... } async fn recv_ascii(&mut self) -> Result<AsciiString, PipeError> where Self: Unpin { ... } async fn recv_until_ascii<T: AsRef<[u8]>>( &mut self, delim: T, drop: bool, ) -> Result<AsciiString, PipeError> where Self: Unpin { ... } async fn recv_until_regex_ascii( &mut self, pattern: &str, drop: bool, ) -> Result<AsciiString, PipeError> where Self: Unpin { ... } async fn recv_regex_ascii( &mut self, pattern: &str, ) -> Result<AsciiString, PipeError> where Self: Unpin { ... } async fn recv_line_ascii(&mut self) -> Result<AsciiString, PipeError> where Self: Unpin { ... } async fn recv_line_crlf_ascii(&mut self) -> Result<AsciiString, PipeError> where Self: Unpin { ... }
}

Provided Methods§

Source

async fn recv(&mut self) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_all(&mut self) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_all_timeout( &mut self, timeout: Duration, keep_data: bool, ) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recvn(&mut self, len: usize) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recvn_fill(&mut self, len: usize) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recvn_exact(&mut self, len: usize) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_until<T: AsRef<[u8]>>( &mut self, delim: T, drop: bool, ) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_until_regex( &mut self, pattern: &str, drop: bool, ) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_regex(&mut self, pattern: &str) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_until_regex_split( &mut self, pattern: &str, ) -> Result<(Vec<u8>, Vec<u8>), PipeError>
where Self: Unpin,

Source

async fn recv_line(&mut self) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_line_crlf(&mut self) -> Result<Vec<u8>, PipeError>
where Self: Unpin,

Source

async fn recv_utf8(&mut self) -> Result<String, PipeError>
where Self: Unpin,

Source

async fn recv_until_utf8<T: AsRef<[u8]>>( &mut self, delim: T, drop: bool, ) -> Result<String, PipeError>
where Self: Unpin,

Source

async fn recv_until_regex_utf8( &mut self, pattern: &str, drop: bool, ) -> Result<String, PipeError>
where Self: Unpin,

Source

async fn recv_regex_utf8(&mut self, pattern: &str) -> Result<String, PipeError>
where Self: Unpin,

Source

async fn recv_line_utf8(&mut self) -> Result<String, PipeError>
where Self: Unpin,

Source

async fn recv_line_crlf_utf8(&mut self) -> Result<String, PipeError>
where Self: Unpin,

Source

async fn recv_ascii(&mut self) -> Result<AsciiString, PipeError>
where Self: Unpin,

Source

async fn recv_until_ascii<T: AsRef<[u8]>>( &mut self, delim: T, drop: bool, ) -> Result<AsciiString, PipeError>
where Self: Unpin,

Source

async fn recv_until_regex_ascii( &mut self, pattern: &str, drop: bool, ) -> Result<AsciiString, PipeError>
where Self: Unpin,

Source

async fn recv_regex_ascii( &mut self, pattern: &str, ) -> Result<AsciiString, PipeError>
where Self: Unpin,

Source

async fn recv_line_ascii(&mut self) -> Result<AsciiString, PipeError>
where Self: Unpin,

Source

async fn recv_line_crlf_ascii(&mut self) -> Result<AsciiString, PipeError>
where Self: Unpin,

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§