pub struct NoOpHook;Expand description
A no-op hook that passes all frames through unchanged.
Trait Implementations§
Source§impl ProxyHook for NoOpHook
impl ProxyHook for NoOpHook
Source§fn on_control_message(
&self,
_cx: &FrameCtx<'_>,
_msg: &AnyControlMessage,
_raw: &[u8],
) -> Action
fn on_control_message( &self, _cx: &FrameCtx<'_>, _msg: &AnyControlMessage, _raw: &[u8], ) -> Action
Called before forwarding a control message. Read more
Source§fn on_stream_open(&self, _cx: &StreamCtx<'_>) -> StreamAction
fn on_stream_open(&self, _cx: &StreamCtx<'_>) -> StreamAction
Source§fn on_stream_header(
&self,
_cx: &StreamCtx<'_>,
_header: &DataStreamHeaderKind,
) -> StreamAction
fn on_stream_header( &self, _cx: &StreamCtx<'_>, _header: &DataStreamHeaderKind, ) -> StreamAction
Called once the data stream’s header has been framed and before its
bytes are forwarded. Read more
Source§fn on_object(&self, _cx: &ObjectCtx<'_>, _raw: &[u8]) -> Action
fn on_object(&self, _cx: &ObjectCtx<'_>, _raw: &[u8]) -> Action
Called before forwarding one complete object. Read more
Source§fn on_datagram(
&self,
_cx: &FrameCtx<'_>,
_header: Option<&AnyDatagramHeader>,
_raw: &[u8],
) -> Action
fn on_datagram( &self, _cx: &FrameCtx<'_>, _header: Option<&AnyDatagramHeader>, _raw: &[u8], ) -> Action
Called before forwarding a datagram. Read more
Auto Trait Implementations§
impl Freeze for NoOpHook
impl RefUnwindSafe for NoOpHook
impl Send for NoOpHook
impl Sync for NoOpHook
impl Unpin for NoOpHook
impl UnsafeUnpin for NoOpHook
impl UnwindSafe for NoOpHook
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