Struct socket2::Protocol [−][src]
pub struct Protocol(_);
Expand description
Protocol specification used for creating sockets via Socket::new
.
This is a newtype wrapper around an integer which provides a nicer API in addition to an injection point for documentation.
This type is freely interconvertible with C’s int
type, however, if a raw
value needs to be provided.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
Mutably borrows from an owned value. Read more