pub struct ProxyTunnel {
pub head: ProxyResponseHead,
pub stream: Box<dyn ProxyTunnelIo>,
pub publication_permit: ProxyPublicationPermit,
}Expand description
One typed HTTP Upgrade response and its live origin connection. The proxy validates and sanitizes the response head before exposing it to a client.
Production streams must bound every read and write wait. In particular,
an otherwise idle read must periodically return TimedOut or
WouldBlock so the proxy can observe generation cancellation without
detaching tunnel workers.
Fields§
§head: ProxyResponseHead§stream: Box<dyn ProxyTunnelIo>§publication_permit: ProxyPublicationPermitTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyTunnel
impl !Sync for ProxyTunnel
impl !UnwindSafe for ProxyTunnel
impl Freeze for ProxyTunnel
impl Send for ProxyTunnel
impl Unpin for ProxyTunnel
impl UnsafeUnpin for ProxyTunnel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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