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