pub struct DecoderLimits { /* private fields */ }Implementations§
Source§impl DecoderLimits
impl DecoderLimits
pub fn new( config: &WireConfig, info: DeviceInfo, ) -> Result<Self, DecoderLimitsError>
pub const fn max_chain_descriptors(self) -> u16
pub const fn max_request_bytes(self) -> u32
pub const fn max_response_bytes(self) -> u32
Trait Implementations§
Source§impl Clone for DecoderLimits
impl Clone for DecoderLimits
Source§fn clone(&self) -> DecoderLimits
fn clone(&self) -> DecoderLimits
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 DecoderLimits
Source§impl Debug for DecoderLimits
impl Debug for DecoderLimits
impl Eq for DecoderLimits
Source§impl PartialEq for DecoderLimits
impl PartialEq for DecoderLimits
impl StructuralPartialEq for DecoderLimits
Auto Trait Implementations§
impl Freeze for DecoderLimits
impl RefUnwindSafe for DecoderLimits
impl Send for DecoderLimits
impl Sync for DecoderLimits
impl Unpin for DecoderLimits
impl UnsafeUnpin for DecoderLimits
impl UnwindSafe for DecoderLimits
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