pub trait LimitReadExt {
// Required method
async fn limit_read(self) -> Result<Vec<u8>, ResolveServerError>;
}Required Methods§
Sourceasync fn limit_read(self) -> Result<Vec<u8>, ResolveServerError>
async fn limit_read(self) -> Result<Vec<u8>, ResolveServerError>
Reads the response body while enforcing a maximum size limit to prevent memory exhaustion.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".