Struct smoltcp::socket::UdpSocketBuffer [] [src]

pub struct UdpSocketBuffer<'a, 'b: 'a> { /* fields omitted */ }

An UDP packet ring buffer.

Methods

impl<'a, 'b> SocketBuffer<'a, 'b>
[src]

Create a packet buffer with the given storage.

Query whether the buffer is empty.

Query whether the buffer is full.

Enqueue an element into the buffer, and return a pointer to it, or return Err(()) if the buffer is full.

Dequeue an element from the buffer, and return a pointer to it, or return Err(()) if the buffer is empty.

Trait Implementations

impl<'a, 'b: 'a> Debug for SocketBuffer<'a, 'b>
[src]

Formats the value using the given formatter.