Struct ws_tool::codec::DeflateWriteState
source · 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 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