Skip to main content

NetStackHandle

Trait NetStackHandle 

Source
pub trait NetStackHandle
where Self: Sized + Clone,
{ type Target: Deref<Target = NetStack<Self::Mutex, Self::Profile>> + Clone; type Mutex: ScopedRawMutex; type Profile: Profile; // Required method fn stack(&self) -> Self::Target; }

Required Associated Types§

Required Methods§

Source

fn stack(&self) -> Self::Target

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R, P> NetStackHandle for Arc<NetStack<R, P>>
where R: ScopedRawMutex, P: Profile,

Available on crate feature std only.
Source§

type Mutex = R

Source§

type Profile = P

Source§

type Target = Arc<NetStack<R, P>>

Source§

fn stack(&self) -> Self::Target

Implementors§

Source§

impl<R, P> NetStackHandle for &NetStack<R, P>
where R: ScopedRawMutex, P: Profile,