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