Home
last modified time | relevance | path

Searched refs:Full (Results 1 – 3 of 3) sorted by relevance

/smoltcp-0.9.1/src/storage/
Dpacket_buffer.rs3 use crate::storage::{Full, RingBuffer};
80 pub fn enqueue(&mut self, size: usize, header: H) -> Result<&mut [u8], Full> { in enqueue() argument
82 return Err(Full); in enqueue()
95 return Err(Full); in enqueue()
102 return Err(Full); in enqueue()
127 ) -> Result<usize, Full> in enqueue_with_infallible()
132 return Err(Full); in enqueue_with_infallible()
139 return Err(Full); in enqueue_with_infallible()
146 return Err(Full); in enqueue_with_infallible()
262 assert_eq!(buffer.enqueue(16, ()), Err(Full)); in test_simple()
[all …]
Dring_buffer.rs10 use super::{Empty, Full};
119 pub fn enqueue_one_with<'b, R, E, F>(&'b mut self, f: F) -> Result<Result<R, E>, Full> in enqueue_one_with()
124 return Err(Full); in enqueue_one_with()
139 pub fn enqueue_one(&mut self) -> Result<&mut T, Full> { in enqueue_one() argument
459 Err(Full) in test_buffer_enqueue_dequeue_one_with()
490 assert_eq!(ring.enqueue_one(), Err(Full)); in test_buffer_enqueue_dequeue_one()
783 assert_eq!(no_capacity.enqueue_one(), Err(Full)); in test_buffer_with_no_capacity()
Dmod.rs26 pub struct Full; struct