pub struct MaxBodySizeInterceptor { /* private fields */ }Expand description
Rejects envelopes that exceed a maximum body size.
Prevents large messages from consuming memory during deserialization.
Implementations§
Trait Implementations§
Source§impl WireInterceptor for MaxBodySizeInterceptor
impl WireInterceptor for MaxBodySizeInterceptor
Source§fn on_receive(&self, envelope: &WireEnvelope) -> WireDisposition
fn on_receive(&self, envelope: &WireEnvelope) -> WireDisposition
Inspect an incoming wire envelope and decide what to do with it. Read more
Auto Trait Implementations§
impl Freeze for MaxBodySizeInterceptor
impl RefUnwindSafe for MaxBodySizeInterceptor
impl Send for MaxBodySizeInterceptor
impl Sync for MaxBodySizeInterceptor
impl Unpin for MaxBodySizeInterceptor
impl UnsafeUnpin for MaxBodySizeInterceptor
impl UnwindSafe for MaxBodySizeInterceptor
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