Struct nbio::http::Http1ResponseDeserializer
source · pub struct Http1ResponseDeserializer { /* private fields */ }
Expand description
A DeserializeFrame
impl for HTTP 1.x where DeserializeFrame::DeserializedFrame
is an http::Response
.
Implementations§
Trait Implementations§
source§impl DeserializeFrame for Http1ResponseDeserializer
impl DeserializeFrame for Http1ResponseDeserializer
source§fn check_deserialize_frame(
&mut self,
data: &[u8],
eof: bool
) -> Result<bool, Error>
fn check_deserialize_frame( &mut self, data: &[u8], eof: bool ) -> Result<bool, Error>
Returns if the given buffer contains a full frame starting at offset=0. Read more
source§fn deserialize_frame<'a>(
&'a mut self,
_data: &'a [u8]
) -> Result<SizedFrame<Self::DeserializedFrame<'a>>, Error>
fn deserialize_frame<'a>( &'a mut self, _data: &'a [u8] ) -> Result<SizedFrame<Self::DeserializedFrame<'a>>, Error>
Deserializes the given buffer into a message frame, returning the deserialized frame and serialized frame length. Read more
Auto Trait Implementations§
impl Freeze for Http1ResponseDeserializer
impl !RefUnwindSafe for Http1ResponseDeserializer
impl Send for Http1ResponseDeserializer
impl Sync for Http1ResponseDeserializer
impl Unpin for Http1ResponseDeserializer
impl !UnwindSafe for Http1ResponseDeserializer
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