pub struct DefaultScmpHandler { /* private fields */ }Expand description
Default SCMP handller.
Implementations§
Source§impl DefaultScmpHandler
impl DefaultScmpHandler
Sourcepub fn new(tunnel_sender: Arc<SnapTunnel>) -> Self
pub fn new(tunnel_sender: Arc<SnapTunnel>) -> Self
Creates a new default SCMP handler.
Trait Implementations§
Source§impl Clone for DefaultScmpHandler
impl Clone for DefaultScmpHandler
Source§impl ScmpHandler for DefaultScmpHandler
impl ScmpHandler for DefaultScmpHandler
Source§fn handle_packet(
&self,
p: ScionPacketScmp,
) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
fn handle_packet( &self, p: ScionPacketScmp, ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
Handle a received SCMP packet.
Auto Trait Implementations§
impl Freeze for DefaultScmpHandler
impl RefUnwindSafe for DefaultScmpHandler
impl Send for DefaultScmpHandler
impl Sync for DefaultScmpHandler
impl Unpin for DefaultScmpHandler
impl UnwindSafe for DefaultScmpHandler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request