Struct smoltcp::socket::SocketSet [] [src]

pub struct SocketSet<'a, 'b: 'a, 'c: 'a + 'b> { /* fields omitted */ }

An extensible set of sockets, with stable numeric identifiers.

The lifetimes 'b and 'c are used when storing a Socket<'b, 'c>.

Methods

impl<'a, 'b: 'a, 'c: 'a + 'b> Set<'a, 'b, 'c>
[src]

Create a socket set using the provided storage.

Add a socket to the set with the reference count 1, and return its handle.

Panics

This function panics if the storage is fixed-size (not a Vec) and is full.

Get a socket from the set by its handle.

Panics

This function may panic if the handle does not belong to this socket set.

Get a socket from the set by its handle, as mutable.

Panics

This function may panic if the handle does not belong to this socket set.

Remove a socket from the set, without changing its state.

Panics

This function may panic if the handle does not belong to this socket set.

Increase reference count by 1.

Panics

This function may panic if the handle does not belong to this socket set.

Decrease reference count by 1.

Panics

This function may panic if the handle does not belong to this socket set, or if the reference count is already zero.

Prune the sockets in this set.

Pruning affects sockets with reference count 0. Open sockets are closed. Closed sockets are removed and dropped.

Iterate every socket in this set.

Iterate every socket in this set, as mutable.

Trait Implementations

impl<'a, 'b: 'a, 'c: 'a + 'b> Debug for Set<'a, 'b, 'c>
[src]

Formats the value using the given formatter.