Lines Matching refs:new
25 pub fn new() -> Clock { in new() method
26 Clock(Arc::new(AtomicUsize::new(0))) in new()
49 pub fn new(data: &[u8]) -> TcpHeaderFuzzer { in new() method
115 let clock = mock::Clock::new();
124 Loopback::new(Medium::Ethernet),
128 smoltcp::phy::FuzzInjector::new(device, EmptyFuzzer(), TcpHeaderFuzzer::new(data))
132 let neighbor_cache = NeighborCache::new(&mut neighbor_cache_entries[..]);
134 let ip_addrs = [IpCidr::new(IpAddress::v4(127, 0, 0, 1), 8)];
135 let mut iface = InterfaceBuilder::new()
148 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_RX_DATA[..] });
149 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_TX_DATA[..] });
150 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer)
156 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_RX_DATA[..] });
157 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_TX_DATA[..] });
158 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer)
162 let mut socket_set = SocketSet::new(&mut socket_set_entries[..]);