Lines Matching refs:new
28 pub fn new() -> Clock { in new() method
29 Clock(Cell::new(Instant::from_millis(0))) in new()
54 pub fn new() -> Clock { in new() method
55 Clock(Arc::new(AtomicUsize::new(0))) in new()
70 let clock = mock::Clock::new(); in main()
71 let device = Loopback::new(Medium::Ethernet); in main()
86 let mut config = Config::new(); in main()
89 let mut iface = Interface::new(config, &mut device); in main()
92 .push(IpCidr::new(IpAddress::v4(127, 0, 0, 1), 8)) in main()
104 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_RX_DATA[..] }); in main()
105 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_TX_DATA[..] }); in main()
106 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer) in main()
112 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_RX_DATA[..] }); in main()
113 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_TX_DATA[..] }); in main()
114 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer) in main()
118 let mut sockets = SocketSet::new(&mut sockets[..]); in main()