multipart::server

Trait ReadEntry

Source
pub trait ReadEntry: PrivReadEntry + Sized {
    // Provided methods
    fn read_entry(self) -> ReadEntryResult<Self> { ... }
    fn read_entry_mut(&mut self) -> ReadEntryResult<&mut Self> { ... }
}
Expand description

Common trait for Multipart and &mut Multipart

Provided Methods§

Source

fn read_entry(self) -> ReadEntryResult<Self>

Attempt to read the next entry in the multipart stream.

Source

fn read_entry_mut(&mut self) -> ReadEntryResult<&mut Self>

Equivalent to read_entry() but takes &mut self

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.

Implementors§

Source§

impl<T> ReadEntry for T
where T: PrivReadEntry,