pub enum RoutingPath {
H1H2OverTcp,
H3OverUdp,
PersistentTcp,
}Expand description
The protocol routing path resolved for an outbound request.
Returned by crate::routing::resolve_routing_path to indicate how the
proxy should forward the connection.
§Example
use stygian_proxy::types::RoutingPath;
let path = RoutingPath::H1H2OverTcp;
assert_eq!(format!("{path:?}"), "H1H2OverTcp");Variants§
H1H2OverTcp
HTTP/1.1 or HTTP/2 multiplexed over a TCP CONNECT tunnel.
H3OverUdp
HTTP/3 (QUIC) over a UDP relay — requires supports_http3_tunnel.
PersistentTcp
Persistent TCP CONNECT tunnel — connection is kept alive between requests.
Selected when crate::routing::TransportPreference::PersistentTcp is used.
Trait Implementations§
Source§impl Clone for RoutingPath
impl Clone for RoutingPath
Source§fn clone(&self) -> RoutingPath
fn clone(&self) -> RoutingPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoutingPath
Source§impl Debug for RoutingPath
impl Debug for RoutingPath
Source§impl<'de> Deserialize<'de> for RoutingPath
impl<'de> Deserialize<'de> for RoutingPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoutingPath
Source§impl Hash for RoutingPath
impl Hash for RoutingPath
Source§impl PartialEq for RoutingPath
impl PartialEq for RoutingPath
Source§impl Serialize for RoutingPath
impl Serialize for RoutingPath
impl StructuralPartialEq for RoutingPath
Auto Trait Implementations§
impl Freeze for RoutingPath
impl RefUnwindSafe for RoutingPath
impl Send for RoutingPath
impl Sync for RoutingPath
impl Unpin for RoutingPath
impl UnsafeUnpin for RoutingPath
impl UnwindSafe for RoutingPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.