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]

[src]

Create a socket set using the provided storage.

[src]

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.

[src]

Get a socket from the set by its handle.

Panics

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

[src]

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.

[src]

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.

[src]

Increase reference count by 1.

Panics

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

[src]

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.

[src]

Prune the sockets in this set.

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

[src]

Iterate every socket in this set.

[src]

Iterate every socket in this set, as mutable.

Trait Implementations

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

[src]

Formats the value using the given formatter.