Trait BodyExt

Source
pub trait BodyExt {
    // Required method
    fn consume_into_vec(
        &mut self,
        _buffer: &mut Vec<u8>,
        _runtime: Option<&Runtime>,
    ) -> ServerResult;

    // Provided method
    fn consume_to_vec(
        &mut self,
        _runtime: Option<&Runtime>,
    ) -> ServerResult<Vec<u8>> { ... }
}

Required Methods§

Source

fn consume_into_vec( &mut self, _buffer: &mut Vec<u8>, _runtime: Option<&Runtime>, ) -> ServerResult

Provided Methods§

Source

fn consume_to_vec( &mut self, _runtime: Option<&Runtime>, ) -> ServerResult<Vec<u8>>

Implementors§

Source§

impl<B> BodyExt for B
where B: BodyTrait<Data = Bytes> + Send + Sync + 'static + Unpin, B::Error: Error + Send + Sync + 'static,