Home
last modified time | relevance | path

Searched refs:F (Results 1 – 23 of 23) sorted by relevance

/smoltcp-0.9.1/src/phy/
Dfuzz_injector.rs87 pub struct RxToken<'a, Rx: phy::RxToken, F: Fuzzer + 'a> {
88 fuzzer: &'a F,
93 fn consume<R, F>(self, f: F) -> R in consume()
95 F: FnOnce(&mut [u8]) -> R, in consume()
105 pub struct TxToken<'a, Tx: phy::TxToken, F: Fuzzer + 'a> {
106 fuzzer: &'a F,
111 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
113 F: FnOnce(&mut [u8]) -> R, in consume()
Dloopback.rs63 fn consume<R, F>(mut self, f: F) -> R in consume()
65 F: FnOnce(&mut [u8]) -> R, in consume()
78 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
80 F: FnOnce(&mut [u8]) -> R, in consume()
Dtuntap_interface.rs84 fn consume<R, F>(mut self, f: F) -> R in consume()
86 F: FnOnce(&mut [u8]) -> R, in consume()
98 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
100 F: FnOnce(&mut [u8]) -> R, in consume()
Draw_socket.rs102 fn consume<R, F>(mut self, f: F) -> R in consume()
104 F: FnOnce(&mut [u8]) -> R, in consume()
116 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
118 F: FnOnce(&mut [u8]) -> R, in consume()
Dtracer.rs95 fn consume<R, F>(self, f: F) -> R in consume()
97 F: FnOnce(&mut [u8]) -> R, in consume()
122 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
124 F: FnOnce(&mut [u8]) -> R, in consume()
Dmod.rs339 fn consume<R, F>(self, f: F) -> R in consume()
341 F: FnOnce(&mut [u8]) -> R; in consume()
352 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
354 F: FnOnce(&mut [u8]) -> R; in consume()
Dfault_injector.rs271 fn consume<R, F>(self, f: F) -> R in consume()
273 F: FnOnce(&mut [u8]) -> R, in consume()
289 fn consume<R, F>(mut self, len: usize, f: F) -> R in consume()
291 F: FnOnce(&mut [u8]) -> R, in consume()
Dpcap_writer.rs222 fn consume<R, F: FnOnce(&mut [u8]) -> R>(self, f: F) -> R { in consume()
245 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
247 F: FnOnce(&mut [u8]) -> R, in consume()
/smoltcp-0.9.1/src/iface/
Dsocket_meta.rs48 pub(crate) fn poll_at<F>(&self, socket_poll_at: PollAt, has_neighbor: F) -> PollAt in poll_at()
50 F: Fn(IpAddress) -> bool, in poll_at()
59 pub(crate) fn egress_permitted<F>(&mut self, timestamp: Instant, has_neighbor: F) -> bool in egress_permitted()
61 F: Fn(IpAddress) -> bool, in egress_permitted()
Droute.rs72 pub fn update<F: FnOnce(&mut Vec<Route, IFACE_MAX_ROUTE_COUNT>)>(&mut self, f: F) { in update() argument
/smoltcp-0.9.1/src/storage/
Dring_buffer.rs119 pub fn enqueue_one_with<'b, R, E, F>(&'b mut self, f: F) -> Result<Result<R, E>, Full> in enqueue_one_with()
121 F: FnOnce(&'b mut T) -> Result<R, E>, in enqueue_one_with()
145 pub fn dequeue_one_with<'b, R, E, F>(&'b mut self, f: F) -> Result<Result<R, E>, Empty> in dequeue_one_with()
147 F: FnOnce(&'b mut T) -> Result<R, E>, in dequeue_one_with()
181 pub fn enqueue_many_with<'b, R, F>(&'b mut self, f: F) -> (usize, R) in enqueue_many_with()
183 F: FnOnce(&'b mut [T]) -> (usize, R), in enqueue_many_with()
239 pub fn dequeue_many_with<'b, R, F>(&'b mut self, f: F) -> (usize, R) in dequeue_many_with()
241 F: FnOnce(&'b mut [T]) -> (usize, R), in dequeue_many_with()
Dpacket_buffer.rs122 pub fn enqueue_with_infallible<'b, F>( in enqueue_with_infallible()
126 f: F, in enqueue_with_infallible() argument
129 F: FnOnce(&'b mut [u8]) -> usize, in enqueue_with_infallible()
180 pub fn dequeue_with<'c, R, E, F>(&'c mut self, f: F) -> Result<Result<R, E>, Empty> in dequeue_with()
182 F: FnOnce(&mut H, &'c mut [u8]) -> Result<R, E>, in dequeue_with()
/smoltcp-0.9.1/src/iface/interface/
Dethernet.rs52 pub(super) fn dispatch_ethernet<Tx, F>( in dispatch_ethernet()
56 f: F, in dispatch_ethernet() argument
60 F: FnOnce(EthernetFrame<&mut [u8]>), in dispatch_ethernet()
Dtests.rs126 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
128 F: FnOnce(&mut [u8]) -> R, in consume()
Dmod.rs646 pub fn update_ip_addrs<F: FnOnce(&mut Vec<IpCidr, IFACE_MAX_ADDR_COUNT>)>(&mut self, f: F) { in update_ip_addrs() argument
/smoltcp-0.9.1/examples/
Dutils.rs22 pub fn setup_logging_with_clock<F>(filter: &str, since_startup: F) in setup_logging_with_clock()
24 F: Fn() -> Instant + Send + Sync + 'static, in setup_logging_with_clock()
/smoltcp-0.9.1/src/
Dparsers.rs50 fn try_do<F, T>(&mut self, f: F) -> Option<T> in try_do() argument
52 F: FnOnce(&mut Parser<'a>) -> Result<T>, in try_do()
72 fn until_eof<F, T>(&mut self, f: F) -> Result<T> in until_eof() argument
74 F: FnOnce(&mut Parser<'a>) -> Result<T>, in until_eof()
/smoltcp-0.9.1/src/socket/
Dudp.rs266 pub fn send_with<F>( in send_with()
270 f: F, in send_with() argument
273 F: FnOnce(&mut [u8]) -> usize, in send_with()
424 pub(crate) fn dispatch<F, E>(&mut self, cx: &mut Context, emit: F) -> Result<(), E> in dispatch() argument
426 F: FnOnce(&mut Context, (IpRepr, UdpRepr, &[u8])) -> Result<(), E>, in dispatch()
Draw.rs195 pub fn send_with<F>(&mut self, max_size: usize, f: F) -> Result<usize, SendError> in send_with()
197 F: FnOnce(&mut [u8]) -> usize, in send_with()
320 pub(crate) fn dispatch<F, E>(&mut self, cx: &mut Context, emit: F) -> Result<(), E> in dispatch() argument
322 F: FnOnce(&mut Context, (IpRepr, &[u8])) -> Result<(), E>, in dispatch()
Dicmp.rs313 pub fn send_with<F>( in send_with()
317 f: F, in send_with() argument
320 F: FnOnce(&mut [u8]) -> usize, in send_with()
483 pub(crate) fn dispatch<F, E>(&mut self, cx: &mut Context, emit: F) -> Result<(), E> in dispatch() argument
485 F: FnOnce(&mut Context, (IpRepr, IcmpRepr)) -> Result<(), E>, in dispatch()
Ddns.rs503 pub(crate) fn dispatch<F, E>(&mut self, cx: &mut Context, emit: F) -> Result<(), E> in dispatch() argument
505 F: FnOnce(&mut Context, (IpRepr, UdpRepr, &[u8])) -> Result<(), E>, in dispatch()
Dtcp.rs992 fn send_impl<'b, F, R>(&'b mut self, f: F) -> Result<R, SendError> in send_impl() argument
994 F: FnOnce(&'b mut SocketBuffer<'a>) -> (usize, R), in send_impl()
1025 pub fn send<'b, F, R>(&'b mut self, f: F) -> Result<R, SendError> in send() argument
1027 F: FnOnce(&'b mut [u8]) -> (usize, R), in send()
1059 fn recv_impl<'b, F, R>(&'b mut self, f: F) -> Result<R, RecvError> in recv_impl() argument
1061 F: FnOnce(&'b mut SocketBuffer<'a>) -> (usize, R), in recv_impl()
1089 pub fn recv<'b, F, R>(&'b mut self, f: F) -> Result<R, RecvError> in recv() argument
1091 F: FnOnce(&'b mut [u8]) -> (usize, R), in recv()
1960 pub(crate) fn dispatch<F, E>(&mut self, cx: &mut Context, emit: F) -> Result<(), E> in dispatch() argument
1962 F: FnOnce(&mut Context, (IpRepr, TcpRepr)) -> Result<(), E>, in dispatch()
[all …]
Ddhcpv4.rs500 pub(crate) fn dispatch<F, E>(&mut self, cx: &mut Context, emit: F) -> Result<(), E> in dispatch() argument
502 F: FnOnce(&mut Context, (Ipv4Repr, UdpRepr, DhcpRepr)) -> Result<(), E>, in dispatch()