pub enum SocketOptionKind {
NoDelay,
KeepAlive,
Linger,
RecvBufferSize,
SendBufferSize,
Ttl,
Ipv6Only,
Broadcast,
MulticastTtl,
MulticastLoop,
}Expand description
Names a readable socket option for Loop::get_option.
Group membership has no getter: the OS exposes no per-socket membership
query, so SocketOption::MulticastJoin and
SocketOption::MulticastLeave have no kind here rather than a kind that
would have to answer Unsupported everywhere.
Variants§
NoDelay
Read SocketOption::NoDelay.
KeepAlive
Read SocketOption::KeepAlive, including the schedule the OS holds.
Linger
Read SocketOption::Linger.
RecvBufferSize
Read SocketOption::RecvBufferSize as the OS actually kept it.
SendBufferSize
Read SocketOption::SendBufferSize as the OS actually kept it.
Ttl
Read SocketOption::Ttl.
Ipv6Only
Read SocketOption::Ipv6Only.
Broadcast
Read SocketOption::Broadcast.
MulticastTtl
MulticastLoop
Trait Implementations§
Source§impl Clone for SocketOptionKind
impl Clone for SocketOptionKind
impl Copy for SocketOptionKind
Source§impl Debug for SocketOptionKind
impl Debug for SocketOptionKind
impl Eq for SocketOptionKind
Source§impl Hash for SocketOptionKind
impl Hash for SocketOptionKind
Source§impl PartialEq for SocketOptionKind
impl PartialEq for SocketOptionKind
impl StructuralPartialEq for SocketOptionKind
Auto Trait Implementations§
impl Freeze for SocketOptionKind
impl RefUnwindSafe for SocketOptionKind
impl Send for SocketOptionKind
impl Sync for SocketOptionKind
impl Unpin for SocketOptionKind
impl UnsafeUnpin for SocketOptionKind
impl UnwindSafe for SocketOptionKind
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