pub enum SetSocketOption<'a> {
Show 34 variants
ReuseAddress(&'a bool),
ReusePort(&'a bool),
Error(&'a i32),
DontRoute(&'a bool),
SendBuffer(&'a usize),
ReceiveBuffer(&'a usize),
KeepAlive(&'a bool),
SendTimeout(&'a Duration),
ReceiveTimeout(&'a Duration),
SendBufferForce(&'a usize),
PassCredentials(&'a bool),
ReceiveTimestamp(&'a bool),
PeerCredentials(&'a UnixCredentials),
SocketType(&'a i32),
SocketProtocol(&'a i32),
SocketDomain(&'a i32),
BindToDevice(&'a Option<InterfaceId>),
Priority(&'a i32),
NoDelay(&'a bool),
MaxSegment(&'a usize),
TcpKeepIdle(&'a u32),
TcpKeepInterval(&'a u32),
TcpKeepCount(&'a u32),
TcpUserTimeout(&'a u32),
TcpInfo(&'a TcpInfo),
TcpCongestionControl(&'a TcpCongestionControl),
Ttl(&'a u8),
IpTos(&'a u8),
RecvTtl(&'a bool),
RecvTos(&'a bool),
RecvTrafficClass(&'a bool),
RecvErr(&'a bool),
IpMtuDiscover(&'a u8),
NonBlocking(&'a bool),
}Expand description
Operation to set a socket option.
Variants§
ReuseAddress(&'a bool)
ReusePort(&'a bool)
Error(&'a i32)
DontRoute(&'a bool)
SendBuffer(&'a usize)
ReceiveBuffer(&'a usize)
KeepAlive(&'a bool)
SendTimeout(&'a Duration)
ReceiveTimeout(&'a Duration)
SendBufferForce(&'a usize)
PassCredentials(&'a bool)
ReceiveTimestamp(&'a bool)
PeerCredentials(&'a UnixCredentials)
SocketType(&'a i32)
SocketProtocol(&'a i32)
SocketDomain(&'a i32)
BindToDevice(&'a Option<InterfaceId>)
Priority(&'a i32)
NoDelay(&'a bool)
MaxSegment(&'a usize)
TcpKeepIdle(&'a u32)
TcpKeepInterval(&'a u32)
TcpKeepCount(&'a u32)
TcpUserTimeout(&'a u32)
TcpInfo(&'a TcpInfo)
TcpCongestionControl(&'a TcpCongestionControl)
Ttl(&'a u8)
IpTos(&'a u8)
RecvTtl(&'a bool)
RecvTos(&'a bool)
RecvTrafficClass(&'a bool)
RecvErr(&'a bool)
IpMtuDiscover(&'a u8)
NonBlocking(&'a bool)
Trait Implementations§
Source§impl<'a> Clone for SetSocketOption<'a>
impl<'a> Clone for SetSocketOption<'a>
Source§fn clone(&self) -> SetSocketOption<'a>
fn clone(&self) -> SetSocketOption<'a>
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<'a> Copy for SetSocketOption<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SetSocketOption<'a>
impl<'a> !UnwindSafe for SetSocketOption<'a>
impl<'a> Freeze for SetSocketOption<'a>
impl<'a> Send for SetSocketOption<'a>
impl<'a> Sync for SetSocketOption<'a>
impl<'a> Unpin for SetSocketOption<'a>
impl<'a> UnsafeUnpin for SetSocketOption<'a>
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