netstack3_base::socket

Trait Inserter

Source
pub trait Inserter<T> {
    // Required method
    fn insert(self, item: T);
}
Expand description

An inserter into a SocketMap.

Required Methods§

Source

fn insert(self, item: T)

Inserts the provided item and consumes self.

Inserts a single item and consumes the inserter (thus preventing additional insertions).

Implementations on Foreign Types§

Source§

impl<'a, T, E: Extend<T>> Inserter<T> for &'a mut E

Source§

fn insert(self, item: T)

Source§

impl<T> Inserter<T> for Infallible

Source§

fn insert(self, _: T)

Implementors§