Trait smoltcp::socket::AsSocket [] [src]

pub trait AsSocket<T> {
    fn as_socket(&mut self) -> &mut T;
fn try_as_socket(&mut self) -> Option<&mut T>; }

A conversion trait for network sockets.

This trait is used to concisely downcast Socket values to their concrete types.

Required Methods

Implementors