pub trait AnySocket<'a>: Sized { fn upcast(self) -> Socket<'a>; fn downcast<'c>(socket: &'c mut Socket<'a>) -> Option<&'c mut Self>; }
A conversion trait for network sockets.