Home
last modified time | relevance | path

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

/smoltcp-0.9.1/src/iface/
Dfragmentation.rs195 for slot in &mut self.assemblers { in get()
196 if slot.key.as_ref() == Some(key) { in get()
197 return Ok(slot); in get()
199 if slot.is_free() { in get()
200 empty_slot = Some(slot) in get()
204 let slot = empty_slot.ok_or(AssemblerFullError)?; in get() localVariable
205 slot.key = Some(*key); in get()
206 slot.expires_at = expires_at; in get()
207 Ok(slot) in get()
Dsocket_set.rs61 fn put<'a>(index: usize, slot: &mut SocketStorage<'a>, socket: Socket<'a>) -> SocketHandle { in add()
66 *slot = SocketStorage { in add()
74 for (index, slot) in self.sockets.iter_mut().enumerate() { in add()
75 if slot.inner.is_none() { in add()
76 return put(index, slot, socket); in add()
/smoltcp-0.9.1/src/socket/
Ddns.rs293 let slot = &mut self.queries[handle.0]; in get_query_result() localVariable
294 let q = slot.as_mut().unwrap(); in get_query_result()
301 *slot = None; // Free up the slot for recycling. in get_query_result()
305 *slot = None; // Free up the slot for recycling. in get_query_result()
317 let slot = &mut self.queries[handle.0]; in cancel_query() localVariable
318 if slot.is_none() { in cancel_query()
321 *slot = None; // Free up the slot for recycling. in cancel_query()