Home
last modified time | relevance | path

Searched refs:peek_slice (Results 1 – 4 of 4) sorted by relevance

/smoltcp-0.9.1/src/socket/
Dudp.rs366 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()
Draw.rs273 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));
Dtcp.rs1128 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in peek_slice() method
/smoltcp-0.9.1/
DCHANGELOG.md48 - socket/raw: Add `peek` and `peek_slice` methods (#734)