pub struct IncomingConnection {
pub stream: TcpStream,
pub remote_addr: String,
pub remote_identity: String,
pub port: u16,
}Expand description
An incoming TCP connection with metadata.
Fields§
§stream: TcpStreamThe raw TCP stream (bridge headers already consumed).
remote_addr: StringRemote address of the connecting peer.
remote_identity: StringRemote DNS name or peer identity JSON.
port: u16Port the connection arrived on.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IncomingConnection
impl RefUnwindSafe for IncomingConnection
impl Send for IncomingConnection
impl Sync for IncomingConnection
impl Unpin for IncomingConnection
impl UnsafeUnpin for IncomingConnection
impl UnwindSafe for IncomingConnection
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