pub struct Context<T = SocketAddrV4, P = SocketAddrV4> {
pub destination: T,
pub proxy: P,
}Expand description
Context contains machine level information, such as details for the proxy server and it’s destination address
Fields§
§destination: T§proxy: PAuto Trait Implementations§
impl<T, P> Freeze for Context<T, P>
impl<T, P> RefUnwindSafe for Context<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for Context<T, P>
impl<T, P> Sync for Context<T, P>
impl<T, P> Unpin for Context<T, P>
impl<T, P> UnsafeUnpin for Context<T, P>where
T: UnsafeUnpin,
P: UnsafeUnpin,
impl<T, P> UnwindSafe for Context<T, P>where
T: UnwindSafe,
P: UnwindSafe,
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