pub struct ConnInfo {
pub listener: usize,
pub peer: Option<SocketAddr>,
pub loop_index: usize,
}Expand description
What the runtime knows about a new connection when it asks an Acceptor for a handler.
Fields§
§listener: usizeIndex of the listener in the order the builder registered them.
peer: Option<SocketAddr>The peer’s address, when the back end reports it at accept time (epoll, kqueue, IOCP).
io_uring’s multishot accept doesn’t; ask Ctx::peer_addr when it’s needed.
loop_index: usizeThe loop that will run the connection.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ConnInfo
impl Freeze for ConnInfo
impl Move for ConnInfo
impl RefUnwindSafe for ConnInfo
impl Send for ConnInfo
impl Sync for ConnInfo
impl Unpin for ConnInfo
impl UnsafeUnpin for ConnInfo
impl UnwindSafe for ConnInfo
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