Enum awc::ConnectRequest
source · pub enum ConnectRequest {
Client(RequestHeadType, AnyBody, Option<SocketAddr>),
Tunnel(RequestHead, Option<SocketAddr>),
}
Expand description
Combined HTTP and WebSocket request type received by connection service.
Variants§
Client(RequestHeadType, AnyBody, Option<SocketAddr>)
Standard HTTP request.
Contains the request head, body type, and optional pre-resolved socket address.
Tunnel(RequestHead, Option<SocketAddr>)
Tunnel used by WebSocket connection requests.
Contains the request head and optional pre-resolved socket address.
Trait Implementations§
source§impl<S> Transform<S, ConnectRequest> for Redirect
impl<S> Transform<S, ConnectRequest> for Redirect
Auto Trait Implementations§
impl !Freeze for ConnectRequest
impl !RefUnwindSafe for ConnectRequest
impl !Send for ConnectRequest
impl !Sync for ConnectRequest
impl Unpin for ConnectRequest
impl !UnwindSafe for ConnectRequest
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