pub trait AsyncReadCacheTimeoutExt: AsyncCacheRead {
// Provided methods
fn read_until_timeout<'a, T: AsRef<[u8]>>(
&'a mut self,
delim: T,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> ReadUntilTimeout<'a, Self, T> ⓘ
where Self: Unpin { ... }
fn read_until_regex_timeout<'a>(
&'a mut self,
pattern: &str,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> Result<ReadUntilRegexTimeout<'a, Self>, Error>
where Self: Unpin { ... }
fn read_line_timeout<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> ReadUntilTimeout<'a, Self, &'static [u8]> ⓘ
where Self: Unpin { ... }
fn read_line_crlf_timeout<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> ReadUntilTimeout<'a, Self, &'static [u8]> ⓘ
where Self: Unpin { ... }
}
Provided Methods§
fn read_until_timeout<'a, T: AsRef<[u8]>>(
&'a mut self,
delim: T,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> ReadUntilTimeout<'a, Self, T> ⓘwhere
Self: Unpin,
fn read_until_regex_timeout<'a>(
&'a mut self,
pattern: &str,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> Result<ReadUntilRegexTimeout<'a, Self>, Error>where
Self: Unpin,
fn read_line_timeout<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> ReadUntilTimeout<'a, Self, &'static [u8]> ⓘwhere
Self: Unpin,
fn read_line_crlf_timeout<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
timeout: Duration,
) -> ReadUntilTimeout<'a, Self, &'static [u8]> ⓘ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.