Home
last modified time | relevance | path

Searched refs:D (Results 1 – 9 of 9) sorted by relevance

/smoltcp-0.9.1/src/phy/
Dtracer.rs12 pub struct Tracer<D: Device> {
13 inner: D,
17 impl<D: Device> Tracer<D> {
19 pub fn new(inner: D, writer: fn(timestamp: Instant, packet: Packet)) -> Tracer<D> { in new() argument
27 pub fn get_ref(&self) -> &D { in get_ref() argument
34 pub fn get_mut(&mut self) -> &mut D { in get_mut() argument
39 pub fn into_inner(self) -> D { in into_inner() argument
44 impl<D: Device> Device for Tracer<D> {
45 type RxToken<'a> = RxToken<D::RxToken<'a>>
48 type TxToken<'a> = TxToken<D::TxToken<'a>>
Dfuzz_injector.rs21 pub struct FuzzInjector<D: Device, FTx: Fuzzer, FRx: Fuzzer> {
22 inner: D,
28 impl<D: Device, FTx: Fuzzer, FRx: Fuzzer> FuzzInjector<D, FTx, FRx> {
30 pub fn new(inner: D, fuzz_tx: FTx, fuzz_rx: FRx) -> FuzzInjector<D, FTx, FRx> { in new() argument
39 pub fn into_inner(self) -> D { in into_inner() argument
44 impl<D: Device, FTx, FRx> Device for FuzzInjector<D, FTx, FRx>
49 type RxToken<'a> = RxToken<'a, D::RxToken<'a>, FRx>
52 type TxToken<'a> = TxToken<'a, D::TxToken<'a>, FTx>
Dpcap_writer.rs118 pub struct PcapWriter<D, S>
120 D: Device,
123 lower: D,
128 impl<D: Device, S: PcapSink> PcapWriter<D, S> {
130 pub fn new(lower: D, mut sink: S, mode: PcapMode) -> PcapWriter<D, S> { in new() argument
152 pub fn get_ref(&self) -> &D { in get_ref() argument
159 pub fn get_mut(&mut self) -> &mut D { in get_mut() argument
164 impl<D: Device, S> Device for PcapWriter<D, S>
168 type RxToken<'a> = RxToken<'a, D::RxToken<'a>, S>
171 type TxToken<'a> = TxToken<'a, D::TxToken<'a>, S>
Dfault_injector.rs94 pub struct FaultInjector<D: Device> {
95 inner: D,
101 impl<D: Device> FaultInjector<D> {
103 pub fn new(inner: D, seed: u32) -> FaultInjector<D> { in new() argument
118 pub fn into_inner(self) -> D { in into_inner() argument
196 impl<D: Device> Device for FaultInjector<D> {
200 type TxToken<'a> = TxToken<'a, D::TxToken<'a>>
/smoltcp-0.9.1/src/iface/interface/
Digmp.rs25 pub fn join_multicast_group<D, T: Into<IpAddress>>( in join_multicast_group() argument
27 device: &mut D, in join_multicast_group() argument
32 D: Device + ?Sized, in join_multicast_group()
73 pub fn leave_multicast_group<D, T: Into<IpAddress>>( in leave_multicast_group() argument
75 device: &mut D, in leave_multicast_group() argument
80 D: Device + ?Sized, in leave_multicast_group()
118 pub(crate) fn igmp_egress<D>(&mut self, device: &mut D) -> bool in igmp_egress()
120 D: Device + ?Sized, in igmp_egress()
Dmod.rs471 pub fn new<D>(config: Config, device: &mut D) -> Self in new()
473 D: Device + ?Sized, in new()
727 pub fn poll<D>( in poll()
730 device: &mut D, in poll() argument
734 D: Device + ?Sized, in poll()
832 fn socket_ingress<D>(&mut self, device: &mut D, sockets: &mut SocketSet<'_>) -> bool in socket_ingress() argument
834 D: Device + ?Sized, in socket_ingress()
889 fn socket_egress<D>(&mut self, device: &mut D, sockets: &mut SocketSet<'_>) -> bool in socket_egress() argument
891 D: Device + ?Sized, in socket_egress()
988 fn ipv4_egress<D>(&mut self, device: &mut D) -> bool in ipv4_egress()
[all …]
/smoltcp-0.9.1/fuzz/
Dutils.rs90 pub fn parse_middleware_options<D>( in parse_middleware_options()
92 device: D, in parse_middleware_options() argument
94 ) -> FaultInjector<Tracer<PcapWriter<D, Box<dyn Write>>>> in parse_middleware_options() argument
96 D: Device, in parse_middleware_options()
/smoltcp-0.9.1/examples/
Dutils.rs152 pub fn parse_middleware_options<D>( in parse_middleware_options()
154 device: D, in parse_middleware_options() argument
156 ) -> FaultInjector<Tracer<PcapWriter<D, Box<dyn io::Write>>>> in parse_middleware_options() argument
158 D: Device, in parse_middleware_options()
/smoltcp-0.9.1/.github/workflows/
Dclippy.yml25 args: --tests --examples -- -D warnings