pub trait SocketProtocol {
type Device: IoDevice;
// Required method
fn raw_protocol_num(&self) -> int;
}Expand description
Represents a socket protocol that is compatible with sockets belonging to
the domain/family FAMILY.
This trait allows super::File::socket to return a file of the
appropriate device type for the selected protocol so that the relevant
socket ioctl requests will be supported on its result.