pub struct FrameDecoder { /* private fields */ }Expand description
Stateless decoder configured with protocol and backend-advertised limits.
A successful return means the complete frame, every fixed field, every binding, and the maximum success-response capacity have been validated. No backend operation is reachable through this type.
Implementations§
Source§impl FrameDecoder
impl FrameDecoder
pub const fn new(limits: DecoderLimits) -> Self
pub const fn limits(&self) -> DecoderLimits
pub fn decode<'a>( &self, request: &'a dyn ByteSource, response_capacity: u64, ) -> Result<DecodedRequest<'a>, FrameDecodeError>
Trait Implementations§
Source§impl Clone for FrameDecoder
impl Clone for FrameDecoder
Source§fn clone(&self) -> FrameDecoder
fn clone(&self) -> FrameDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameDecoder
Auto Trait Implementations§
impl Freeze 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