pub struct Codec(_);Implementations
sourceimpl Codec
impl Codec
sourcepub fn set_recv_frame_size(&self, val: usize)
pub fn set_recv_frame_size(&self, val: usize)
Updates the max received frame size.
The change takes effect the next time a frame is decoded. In other
words, if a frame is currently in process of being decoded with a frame
size greater than val but less than the max frame size in effect
before calling this function, then the frame will be allowed.
sourcepub fn recv_frame_size(&self) -> u32
pub fn recv_frame_size(&self) -> u32
Local max frame size.
sourcepub fn set_recv_header_list_size(&self, val: usize)
pub fn set_recv_header_list_size(&self, val: usize)
Set the max header list size that can be received.
sourcepub fn set_send_frame_size(&self, val: usize)
pub fn set_send_frame_size(&self, val: usize)
Set the peer’s max frame size.
sourcepub fn set_send_header_table_size(&self, val: usize)
pub fn set_send_header_table_size(&self, val: usize)
Set the peer’s header table size size.
sourcepub fn send_frame_size(&self) -> u32
pub fn send_frame_size(&self) -> u32
Remote max frame size.
Trait Implementations
sourceimpl Decoder for Codec
impl Decoder for Codec
sourcefn decode(&self, src: &mut BytesMut) -> Result<Option<Frame>, FrameError>
fn decode(&self, src: &mut BytesMut) -> Result<Option<Frame>, FrameError>
Decodes a frame.
This method is intentionally de-generified and outlined because it is very large.
type Error = FrameError
type Error = FrameError
The type of unrecoverable frame decoding errors. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Codec
impl !Send for Codec
impl !Sync for Codec
impl Unpin for Codec
impl !UnwindSafe for Codec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more