#[repr(transparent)]pub struct So9SockProtocol(pub c_int);Expand description
A socket protocol. Is optional on some OSes like
OSX. In this case it should be set to [SockProtocol::NONE].
Tuple Fields§
§0: c_intImplementations§
Source§impl So9SockProtocol
impl So9SockProtocol
Sourcepub const ICMPV4: Self
pub const ICMPV4: Self
libc::IPPROTO_ICMP protocol
Sourcepub const ICMPV6: Self
pub const ICMPV6: Self
libc::IPPROTO_ICMPV6 protocol
Sourcepub const TCP: Self
pub const TCP: Self
libc::IPPROTO_TCP protocol
Sourcepub const UDP: Self
pub const UDP: Self
libc::IPPROTO_UDP protocol
Sourcepub const MPTCP: Self
pub const MPTCP: Self
libc::IPPROTO_MPTCP protocol
Sourcepub const SCTP: Self
pub const SCTP: Self
libc::IPPROTO_SCTP protocol
Sourcepub const DCCP: Self
pub const DCCP: Self
libc::IPPROTO_DCCP protocol
Sourcepub const UDPLITE: Self
pub const UDPLITE: Self
libc::IPPROTO_UDPLITE protocol
Trait Implementations§
Source§impl Clone for So9SockProtocol
impl Clone for So9SockProtocol
Source§fn clone(&self) -> So9SockProtocol
fn clone(&self) -> So9SockProtocol
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for So9SockProtocol
impl Debug for So9SockProtocol
Source§impl From<i32> for So9SockProtocol
Available on target_family=unix only.
impl From<i32> for So9SockProtocol
Available on
target_family=unix only.Source§impl PartialEq for So9SockProtocol
impl PartialEq for So9SockProtocol
impl Copy for So9SockProtocol
impl Eq for So9SockProtocol
impl StructuralPartialEq for So9SockProtocol
Auto Trait Implementations§
impl Freeze for So9SockProtocol
impl RefUnwindSafe for So9SockProtocol
impl Send for So9SockProtocol
impl Sync for So9SockProtocol
impl Unpin for So9SockProtocol
impl UnsafeUnpin for So9SockProtocol
impl UnwindSafe for So9SockProtocol
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