pub trait ResponseBody:
Send
+ Sync
+ Debug {
type Error: Send + Sync + Debug + Into<Error>;
type Bytes: AsRef<[u8]> + Into<Vec<u8>>;
// Required method
fn read_all<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Bytes, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait;
}Expand description
Implemented by response bodies.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".