Searched refs:peek_slice (Results 1 – 4 of 4) sorted by relevance
/smoltcp-0.9.1/src/socket/ |
D | udp.rs | 366 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<(usize, &IpEndpoint), RecvError> { in peek_slice() method 733 assert_eq!(socket.peek_slice(&mut slice[..]), Ok((4, &REMOTE_END))); in test_peek_truncated_slice() 737 assert_eq!(socket.peek_slice(&mut slice[..]), Err(RecvError::Exhausted)); in test_peek_truncated_slice()
|
D | raw.rs | 273 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in peek_slice() method 578 assert_eq!(socket.peek_slice(&mut slice[..]), Ok(4)); 582 assert_eq!(socket.peek_slice(&mut slice[..]), Err(RecvError::Exhausted));
|
D | tcp.rs | 1128 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in peek_slice() method
|
/smoltcp-0.9.1/ |
D | CHANGELOG.md | 48 - socket/raw: Add `peek` and `peek_slice` methods (#734)
|