pub struct HttpCodec {
pub pos_n: Vec<usize>,
pub payload: BytesMut,
}
Fields§
§pos_n: Vec<usize>
§payload: BytesMut
Trait Implementations§
Source§impl Decoder for HttpCodec
impl Decoder for HttpCodec
Source§fn decode(&mut self, buf: &mut BytesMut) -> HttpResult<Option<Self::Item>>
fn decode(&mut self, buf: &mut BytesMut) -> HttpResult<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for HttpCodec
impl RefUnwindSafe for HttpCodec
impl Send for HttpCodec
impl Sync for HttpCodec
impl Unpin for HttpCodec
impl UnwindSafe for HttpCodec
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