pub struct NoOpInterceptor;Expand description
No-op interceptor that passes all packets through unchanged.
This is the default interceptor when none is specified.
Trait Implementations§
Source§impl Clone for NoOpInterceptor
impl Clone for NoOpInterceptor
Source§fn clone(&self) -> NoOpInterceptor
fn clone(&self) -> NoOpInterceptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoOpInterceptor
impl Debug for NoOpInterceptor
Source§impl Interceptor for NoOpInterceptor
impl Interceptor for NoOpInterceptor
Source§fn on_receive(&mut self, _addr: &SocketAddr, _data: &mut [u8]) -> bool
fn on_receive(&mut self, _addr: &SocketAddr, _data: &mut [u8]) -> bool
Called when a packet is received from the network, before protocol processing. Read more
impl Copy for NoOpInterceptor
Auto Trait Implementations§
impl Freeze for NoOpInterceptor
impl RefUnwindSafe for NoOpInterceptor
impl Send for NoOpInterceptor
impl Sync for NoOpInterceptor
impl Unpin for NoOpInterceptor
impl UnwindSafe for NoOpInterceptor
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