pub struct DeviceAdapter<D: NetworkDevice> {
pub inner: D,
}Expand description
Thin adapter that exposes a NetworkDevice to smoltcp.
Fields§
§inner: DImplementations§
Source§impl<D: NetworkDevice> DeviceAdapter<D>
impl<D: NetworkDevice> DeviceAdapter<D>
Trait Implementations§
Source§impl<D: NetworkDevice> Device for DeviceAdapter<D>
impl<D: NetworkDevice> Device for DeviceAdapter<D>
type RxToken<'a> = AdapterRxToken<'a, D> where D: 'a
type TxToken<'a> = AdapterTxToken<'a, D> where D: 'a
Source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.
Auto Trait Implementations§
impl<D> Freeze for DeviceAdapter<D>where
D: Freeze,
impl<D> RefUnwindSafe for DeviceAdapter<D>where
D: RefUnwindSafe,
impl<D> Send for DeviceAdapter<D>where
D: Send,
impl<D> Sync for DeviceAdapter<D>where
D: Sync,
impl<D> Unpin for DeviceAdapter<D>where
D: Unpin,
impl<D> UnwindSafe for DeviceAdapter<D>where
D: UnwindSafe,
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