#[repr(i32)]
pub enum SockProtocol {
Tcp,
Udp,
KextEvent,
KextControl,
}
Expand description
Constants used in socket
and socketpair
to specify the protocol to use.
Variants
Tcp
TCP protocol (ip(7))
Udp
UDP protocol (ip(7))
KextEvent
Allows applications and other KEXTs to be notified when certain kernel events occur (ref)
KextControl
Allows applications to configure and control a KEXT (ref)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SockProtocol
impl Send for SockProtocol
impl Sync for SockProtocol
impl Unpin for SockProtocol
impl UnwindSafe for SockProtocol
Blanket Implementations
Mutably borrows from an owned value. Read more