pub struct Handshake {
connecting: Connecting,
}Expand description
A client connection whose handshake has not finished. Produced by
Listener::accept_handshake.
Fields§
§connecting: ConnectingImplementations§
Source§impl Handshake
impl Handshake
Sourcepub fn remote_address(&self) -> SocketAddr
pub fn remote_address(&self) -> SocketAddr
The client’s address.
Sourcepub async fn complete(self) -> Result<ClientRequest, ProxyError>
pub async fn complete(self) -> Result<ClientRequest, ProxyError>
Finish the handshake. For an h3 client this runs the HTTP/3
handshake up to the WebTransport request and returns it unanswered.
Auto Trait Implementations§
impl !RefUnwindSafe for Handshake
impl !UnwindSafe for Handshake
impl Freeze for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnsafeUnpin for Handshake
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