pub struct Request<'a> {
pub host: &'a str,
pub port: u16,
pub peer: SocketAddr,
pub local: SocketAddr,
}Expand description
One connection a client asked for.
Fields§
§host: &'a strLowercased host name or IP literal, as the client wrote it.
port: u16§peer: SocketAddrThe client’s end of the connection to the proxy.
local: SocketAddrThe proxy’s end of it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Request<'a>
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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