pub struct ContentLengthBodyParser { /* private fields */ }Implementations
sourceimpl ContentLengthBodyParser
impl ContentLengthBodyParser
pub fn new() -> Self
pub fn set_length(&mut self, length: usize)
pub fn get_length(&self) -> usize
Trait Implementations
sourceimpl BodyParser for ContentLengthBodyParser
impl BodyParser for ContentLengthBodyParser
fn parse<R: BufRead>(
&mut self,
r: &mut R,
body_buf: &mut Vec<u8>
) -> Result<BodyParseOutput, BodyParseError>
sourceimpl Default for ContentLengthBodyParser
impl Default for ContentLengthBodyParser
sourcefn default() -> ContentLengthBodyParser
fn default() -> ContentLengthBodyParser
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContentLengthBodyParser
impl Send for ContentLengthBodyParser
impl Sync for ContentLengthBodyParser
impl Unpin for ContentLengthBodyParser
impl UnwindSafe for ContentLengthBodyParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more