pub struct ConnectionRequest { /* private fields */ }
Expand description
An incoming connection request.
The request must be explicitly accepted by Worker::accept or rejected by Listener::reject.
Implementations§
Source§impl ConnectionRequest
impl ConnectionRequest
Sourcepub fn remote_addr(&self) -> Result<SocketAddr, Error>
pub fn remote_addr(&self) -> Result<SocketAddr, Error>
The address of the remote client that sent the connection request to the server.
Trait Implementations§
Source§impl Debug for ConnectionRequest
impl Debug for ConnectionRequest
impl Send for ConnectionRequest
Auto Trait Implementations§
impl Freeze for ConnectionRequest
impl RefUnwindSafe for ConnectionRequest
impl !Sync for ConnectionRequest
impl Unpin for ConnectionRequest
impl UnwindSafe for ConnectionRequest
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