pub struct FrameDecoder { /* private fields */ }Expand description
The frame decoder for one connection.
Implementations§
Source§impl FrameDecoder
impl FrameDecoder
Sourcepub fn set_permessage_deflate(&mut self, on: bool)
pub fn set_permessage_deflate(&mut self, on: bool)
Accepts RSV1 on the first frame of a data message (permessage-deflate negotiated).
Sourcepub fn message_compressed(&self) -> bool
pub fn message_compressed(&self) -> bool
The message whose pieces are being returned has RSV1 set: inflate it (RFC 7692 §6.2). UTF-8 is then not checked here: check the inflated text.
Trait Implementations§
Source§impl Clone for FrameDecoder
impl Clone for FrameDecoder
Auto Trait Implementations§
impl Forget for FrameDecoder
impl Freeze for FrameDecoder
impl Move for FrameDecoder
impl RefUnwindSafe for FrameDecoder
impl Send for FrameDecoder
impl Sync for FrameDecoder
impl Unpin for FrameDecoder
impl UnsafeUnpin for FrameDecoder
impl UnwindSafe for FrameDecoder
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