pub struct UpgradeCodec { /* private fields */ }
Expand description
Tokio decoder for parsing the server’s response to the client’s HTTP Connection: Upgrade
request.
Implementations§
Trait Implementations§
Source§impl Decoder for UpgradeCodec
impl Decoder for UpgradeCodec
Source§type Error = Box<dyn Error + Send + Sync>
type Error = Box<dyn Error + Send + Sync>
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<()>>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<()>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for UpgradeCodec
impl RefUnwindSafe for UpgradeCodec
impl Send for UpgradeCodec
impl Sync for UpgradeCodec
impl Unpin for UpgradeCodec
impl UnwindSafe for UpgradeCodec
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