Home
last modified time | relevance | path

Searched defs:Config (Results 1 – 3 of 3) sorted by relevance

/smoltcp-0.9.1/src/phy/
Dfault_injector.rs20 struct Config { struct
21 corrupt_pct: u8,
22 drop_pct: u8,
23 max_size: usize,
24 max_tx_rate: u64,
25 max_rx_rate: u64,
26 interval: Duration,
51 fn refill(&mut self, config: &Config, timestamp: Instant) { in refill()
59 fn maybe_transmit(&mut self, config: &Config, timestamp: Instant) -> bool { in maybe_transmit()
73 fn maybe_receive(&mut self, config: &Config, timestamp: Instant) -> bool { in maybe_receive()
/smoltcp-0.9.1/src/iface/interface/
Dmod.rs268 pub struct Config { struct
291 impl Config { argument
303 impl Default for Config { implementation
471 pub fn new<D>(config: Config, device: &mut D) -> Self in new()
/smoltcp-0.9.1/src/socket/
Ddhcpv4.rs30 pub struct Config<'a> { struct
33 pub server: ServerInfo,
35 pub address: Ipv4Cidr,
38 pub router: Option<Ipv4Address>,
40 pub dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>,
42 pub packet: Option<DhcpPacket<&'a [u8]>>,