Expand description
Bidirectional bridge between network and datalink layers. Bidirectional bridge between a network layer and a datalink.
[Bridge] forwards packets in both directions: inbound
from the network side to the datalink side, and outbound
from the datalink side to the network side.
§Example
ⓘ
let channel = LocalChannel::new();
let (app_handle, router_handle) = channel.split();
let mut bridge = Bridge::new(router, router_handle);
join(app(app_handle), bridge.run()).await;Structs§
- Bridge
- Bidirectional bridge between a
NetworkRead+NetworkWriteand aDatalinkRead+DatalinkWrite.