#[repr(i32)]pub enum SocketOptionLevel {
Socket = 1,
Ip = 0,
Tcp = 6,
Udp = 17,
Ipv6 = 41,
}Expand description
Niveau de protocole d’une option socket (level de getsockopt/setsockopt).
Correspond aux constantes SOL_SOCKET / IPPROTO_* de <sys/socket.h> et
<netinet/in.h>. Newtype typé (ADR-029 : jamais d’i32 brut pour un niveau) ;
partagé entre family-net (synchrone) et les façades io_uring::cmd
getsockopt/setsockopt.
Variants§
Socket = 1
SOL_SOCKET (1) : options génériques du socket (SO_*).
Ip = 0
IPPROTO_IP (0) : options IPv4 (IP_*).
Tcp = 6
IPPROTO_TCP (6) : options TCP (TCP_*).
Udp = 17
IPPROTO_UDP (17) : options UDP (UDP_*).
Ipv6 = 41
IPPROTO_IPV6 (41) : options IPv6 (IPV6_*).
Implementations§
Trait Implementations§
Source§impl Clone for SocketOptionLevel
impl Clone for SocketOptionLevel
Source§fn clone(&self) -> SocketOptionLevel
fn clone(&self) -> SocketOptionLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SocketOptionLevel
Source§impl Debug for SocketOptionLevel
impl Debug for SocketOptionLevel
impl Eq for SocketOptionLevel
Source§impl Hash for SocketOptionLevel
impl Hash for SocketOptionLevel
Source§impl PartialEq for SocketOptionLevel
impl PartialEq for SocketOptionLevel
impl StructuralPartialEq for SocketOptionLevel
Auto Trait Implementations§
impl Freeze for SocketOptionLevel
impl RefUnwindSafe for SocketOptionLevel
impl Send for SocketOptionLevel
impl Sync for SocketOptionLevel
impl Unpin for SocketOptionLevel
impl UnsafeUnpin for SocketOptionLevel
impl UnwindSafe for SocketOptionLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more