Skip to main content

LimitReadExt

Trait LimitReadExt 

Source
pub trait LimitReadExt {
    // Required method
    async fn limit_read(self) -> Result<Vec<u8>, ResolveServerError>;
}

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl LimitReadExt for Response

Implementors§