pub struct SmoltcpInterface {
device_adapter: NetDeviceAdapter,
iface: Interface,
}Expand description
Smoltcp 接口包装器,确保 Device 和 Interface 有相同的生命周期
Fields§
§device_adapter: NetDeviceAdapter§iface: InterfaceImplementations§
Source§impl SmoltcpInterface
impl SmoltcpInterface
Sourcepub fn interface_mut(&mut self) -> &mut Interface
pub fn interface_mut(&mut self) -> &mut Interface
获取可变的 smoltcp Interface 引用
Sourcepub fn device_adapter_mut(&mut self) -> &mut NetDeviceAdapter
pub fn device_adapter_mut(&mut self) -> &mut NetDeviceAdapter
获取可变的 device adapter 引用
Sourcepub fn into_interface(self) -> Interface
pub fn into_interface(self) -> Interface
消费包装器,返回内部的Interface