Home
last modified time | relevance | path

Searched refs:TxToken (Results 1 – 13 of 13) sorted by relevance

/smoltcp-0.9.1/src/phy/
Dfuzz_injector.rs52 type TxToken<'a> = TxToken<'a, D::TxToken<'a>, FTx> typedef
64 fn receive(&mut self, timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
70 let tx = TxToken { in receive()
78 fn transmit(&mut self, timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
79 self.inner.transmit(timestamp).map(|token| TxToken { in transmit()
105 pub struct TxToken<'a, Tx: phy::TxToken, F: Fuzzer + 'a> { struct
110 impl<'a, Tx: phy::TxToken, FTx: Fuzzer> phy::TxToken for TxToken<'a, Tx, FTx> { implementation
Dloopback.rs30 type TxToken<'a> = TxToken<'a>; typedef
40 fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
43 let tx = TxToken { in receive()
50 fn transmit(&mut self, _timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
51 Some(TxToken { in transmit()
73 pub struct TxToken<'a> { struct
77 impl<'a> phy::TxToken for TxToken<'a> { argument
Dtracer.rs48 type TxToken<'a> = TxToken<D::TxToken<'a>> typedef
56 fn receive(&mut self, timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
65 let tx = TxToken { in receive()
75 fn transmit(&mut self, timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
77 self.inner.transmit(timestamp).map(|tx_token| TxToken { in transmit()
114 pub struct TxToken<Tx: phy::TxToken> { struct
121 impl<Tx: phy::TxToken> phy::TxToken for TxToken<Tx> { argument
Dtuntap_interface.rs44 type TxToken<'a> = TxToken; typedef
54 fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
61 let tx = TxToken { in receive()
71 fn transmit(&mut self, _timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
72 Some(TxToken { in transmit()
93 pub struct TxToken { struct
97 impl phy::TxToken for TxToken { argument
Draw_socket.rs60 type TxToken<'a> = TxToken typedef
72 fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
79 let tx = TxToken { in receive()
89 fn transmit(&mut self, _timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
90 Some(TxToken { in transmit()
111 pub struct TxToken { struct
115 impl phy::TxToken for TxToken { implementation
Dpcap_writer.rs171 type TxToken<'a> = TxToken<'a, D::TxToken<'a>, S> typedef
179 fn receive(&mut self, timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
191 let tx = TxToken { in receive()
201 fn transmit(&mut self, timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
204 self.lower.transmit(timestamp).map(move |token| TxToken { in transmit()
237 pub struct TxToken<'a, Tx: phy::TxToken, S: PcapSink> { struct
244 impl<'a, Tx: phy::TxToken, S: PcapSink> phy::TxToken for TxToken<'a, Tx, S> { argument
Dfault_injector.rs200 type TxToken<'a> = TxToken<'a, D::TxToken<'a>> typedef
212 fn receive(&mut self, timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
244 let tx = TxToken { in receive()
254 fn transmit(&mut self, timestamp: Instant) -> Option<Self::TxToken<'_>> { in transmit()
255 self.inner.transmit(timestamp).map(|token| TxToken { in transmit()
280 pub struct TxToken<'a, Tx: phy::TxToken> { struct
288 impl<'a, Tx: phy::TxToken> phy::TxToken for TxToken<'a, Tx> { argument
Dmod.rs308 type TxToken<'a>: TxToken typedef
321 fn receive(&mut self, timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>; in receive()
327 fn transmit(&mut self, timestamp: Instant) -> Option<Self::TxToken<'_>>; in transmit()
345 pub trait TxToken { interface
/smoltcp-0.9.1/src/iface/interface/
Dethernet.rs9 use crate::phy::TxToken;
59 Tx: TxToken, in dispatch_ethernet() argument
Dsixlowpan.rs4 use crate::phy::TxToken;
261 pub(super) fn dispatch_ieee802154<Tx: TxToken>( in dispatch_ieee802154()
544 pub(super) fn dispatch_ieee802154_frag<Tx: TxToken>( in dispatch_ieee802154_frag()
Dipv4.rs9 use crate::phy::{Medium, TxToken};
333 pub(super) fn dispatch_ipv4_frag<Tx: TxToken>(&mut self, tx_token: Tx, frag: &mut Fragmenter) { in dispatch_ipv4_frag()
Dmod.rs38 use crate::phy::{ChecksumCapabilities, Device, DeviceCapabilities, Medium, RxToken, TxToken};
1462 Tx: TxToken, in dispatch() argument
1533 Tx: TxToken, in lookup_hardware_addr() argument
1671 fn dispatch_ip<Tx: TxToken>( in dispatch_ip()
Dtests.rs125 impl TxToken for MockTxToken {