pub enum Bound {
Lone(UdpSocket),
Member(Socket),
}Expand description
A bound socket a worker takes over, with whatever identity it carries.
Both variants convert with From, so crate::Handle::udp takes either
as is. The member is the only way a socket gets a steering slot: the
group that completed it is what proved the slot is real.
Variants§
Lone(UdpSocket)
A socket on its own, bound by the caller.
Member(Socket)
One member of a completed steered SO_REUSEPORT group. Every
connection id an endpoint on it issues then leads with the member’s
cid_prefix, so the group’s filter
keeps delivering a connection’s packets to this socket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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