pub struct NoopProbeHandler;Expand description
No-op active probe handler. Both [start] and [process] do nothing;
unidentified packets are dropped silently.
Trait Implementations§
Source§impl<AE: AsyncExecutor + 'static> ActiveProbeHandler<AE> for NoopProbeHandler
impl<AE: AsyncExecutor + 'static> ActiveProbeHandler<AE> for NoopProbeHandler
Source§fn start<'life0, 'async_trait>(
&'life0 mut self,
__arg1: Weak<dyn ProbeFlowSender>,
__arg2: Arc<Settings<AE>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 mut self,
__arg1: Weak<dyn ProbeFlowSender>,
__arg2: Arc<Settings<AE>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called once when the flow manager starts.
manager provides a raw-socket send path; settings carries runtime configuration.Source§fn process<'life0, 'async_trait>(
&'life0 mut self,
__arg1: DynamicByteBuffer,
__arg2: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>(
&'life0 mut self,
__arg1: DynamicByteBuffer,
__arg2: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called for each unidentified packet.
source is the UDP sender address — Some on the server, None on the client (the
peer address is fixed for a connected socket and need not be threaded through).Source§impl Default for NoopProbeHandler
impl Default for NoopProbeHandler
Source§fn default() -> NoopProbeHandler
fn default() -> NoopProbeHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopProbeHandler
impl RefUnwindSafe for NoopProbeHandler
impl Send for NoopProbeHandler
impl Sync for NoopProbeHandler
impl Unpin for NoopProbeHandler
impl UnsafeUnpin for NoopProbeHandler
impl UnwindSafe for NoopProbeHandler
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