pub struct CompressedReaderProtocol { /* private fields */ }Expand description
Reader half of a split compressed protocol
Contains the decoder and frame parser for reading compressed messages.
Implementations§
Source§impl CompressedReaderProtocol
impl CompressedReaderProtocol
Sourcepub fn server(
max_frame_size: usize,
max_message_size: usize,
config: &DeflateConfig,
) -> Self
pub fn server( max_frame_size: usize, max_message_size: usize, config: &DeflateConfig, ) -> Self
Create a new reader protocol for server role
Sourcepub fn client(
max_frame_size: usize,
max_message_size: usize,
config: &DeflateConfig,
) -> Self
pub fn client( max_frame_size: usize, max_message_size: usize, config: &DeflateConfig, ) -> Self
Create a new reader protocol for client role
Auto Trait Implementations§
impl Freeze for CompressedReaderProtocol
impl RefUnwindSafe for CompressedReaderProtocol
impl Send for CompressedReaderProtocol
impl Sync for CompressedReaderProtocol
impl Unpin for CompressedReaderProtocol
impl UnwindSafe for CompressedReaderProtocol
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