pub enum Route<'a> {
Tcp,
ConnectUdp,
UnsupportedProtocol(&'a str),
NotConnect,
}Expand description
How a request should be handled.
Variants§
Tcp
CONNECT with no :protocol: a TCP tunnel (RFC 9114 §4.4).
ConnectUdp
CONNECT with :protocol = connect-udp: a UDP tunnel (RFC 9298).
UnsupportedProtocol(&'a str)
CONNECT with a :protocol this proxy does not implement.
Borrowed from the request, so the name logged and refused is the token the client actually sent rather than one of a fixed few.
NotConnect
Not a CONNECT request at all. This server is a proxy, not an origin.
Trait Implementations§
impl<'a> Copy for Route<'a>
impl<'a> Eq for Route<'a>
impl<'a> StructuralPartialEq for Route<'a>
Auto Trait Implementations§
impl<'a> Freeze for Route<'a>
impl<'a> RefUnwindSafe for Route<'a>
impl<'a> Send for Route<'a>
impl<'a> Sync for Route<'a>
impl<'a> Unpin for Route<'a>
impl<'a> UnsafeUnpin for Route<'a>
impl<'a> UnwindSafe for Route<'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