Trait ctf_pwn::io::PipeReadExt
source · pub trait PipeReadExt: PipeRead {
Show 20 methods
// Provided methods
async fn recv(&mut self) -> Result<Vec<u8>, PipeError>
where Self: Unpin { ... }
async fn recvn(&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§
async fn recv(&mut self) -> Result<Vec<u8>, PipeError>where
Self: Unpin,
async fn recvn(&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,
Object Safety§
This trait is not object safe.