pub trait StreamReader {
// Required methods
fn get_chunk(&mut self) -> Result<Vec<u8>, MultipartFormDataError>;
fn get_exact(
&mut self,
size: usize,
) -> Result<Vec<u8>, MultipartFormDataError>;
}Expand description
The reusable trait for fetching multipart bytes
Required Methods§
fn get_chunk(&mut self) -> Result<Vec<u8>, MultipartFormDataError>
fn get_exact(&mut self, size: usize) -> Result<Vec<u8>, MultipartFormDataError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".