pub struct DeflateWriteState { /* private fields */ }
Expand description
deflate frame write state
Implementations§
Source§impl DeflateWriteState
impl DeflateWriteState
Sourcepub fn send_owned_frame<S: Write>(
&mut self,
stream: &mut S,
frame: OwnedFrame,
) -> Result<(), WsError>
pub fn send_owned_frame<S: Write>( &mut self, stream: &mut S, frame: OwnedFrame, ) -> Result<(), WsError>
send a read frame, this method will not check validation of frame and do not fragment
Source§impl DeflateWriteState
impl DeflateWriteState
Sourcepub fn with_config(
frame_config: FrameConfig,
pmd_config: Option<PMDConfig>,
is_server: bool,
) -> Self
pub fn with_config( frame_config: FrameConfig, pmd_config: Option<PMDConfig>, is_server: bool, ) -> Self
construct with config
Auto Trait Implementations§
impl Freeze for DeflateWriteState
impl RefUnwindSafe for DeflateWriteState
impl Send for DeflateWriteState
impl Sync for DeflateWriteState
impl Unpin for DeflateWriteState
impl UnwindSafe for DeflateWriteState
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