Searched refs:recv_slice (Results 1 – 4 of 4) sorted by relevance
/smoltcp-0.9.1/src/socket/ |
D | udp.rs | 333 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<(usize, IpEndpoint), RecvError> { in recv_slice() method 719 assert_eq!(socket.recv_slice(&mut slice[..]), Ok((4, REMOTE_END))); in test_recv_truncated_slice() 735 assert_eq!(socket.recv_slice(&mut slice[..]), Ok((4, REMOTE_END))); in test_peek_truncated_slice()
|
D | raw.rs | 243 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in recv_slice() method 553 assert_eq!(socket.recv_slice(&mut slice[..]), Ok(4)); 580 assert_eq!(socket.recv_slice(&mut slice[..]), Ok(4));
|
D | icmp.rs | 363 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<(usize, IpAddress), RecvError> { in recv_slice() method
|
D | tcp.rs | 1102 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in recv_slice() method 5737 assert_eq!(s.recv_slice(rx_buf), Ok(4)); in test_close_wait_no_window_update() 5770 assert_eq!(s.recv_slice(rx_buf), Ok(4)); in test_time_wait_no_window_update() 6387 assert_eq!(s.recv_slice(&mut data[..]), Ok(6)); in test_buffer_wraparound_rx()
|