pub struct RouteDecision {
pub selected: ProtocolRoute,
pub reason: RouteReason,
pub negotiated_alpn: Option<String>,
pub fallback_chain: Vec<ProtocolRoute>,
}Available on crate feature
http3-profile only.Expand description
Decision output for ALPN+fallback route resolution.
§Examples
use http_handle::http3_profile::{ProtocolRoute, RouteDecision, RouteReason};
let d = RouteDecision { selected: ProtocolRoute::Http11, reason: RouteReason::AlpnMissing, negotiated_alpn: None, fallback_chain: vec![ProtocolRoute::Http11] };
assert_eq!(d.selected, ProtocolRoute::Http11);§Panics
This type does not panic.
Fields§
§selected: ProtocolRouteFinal selected route.
reason: RouteReasonResolution reason.
negotiated_alpn: Option<String>Raw negotiated ALPN token if present.
fallback_chain: Vec<ProtocolRoute>Ordered chain considered for fallback.
Trait Implementations§
Source§impl Clone for RouteDecision
impl Clone for RouteDecision
Source§fn clone(&self) -> RouteDecision
fn clone(&self) -> RouteDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteDecision
impl Debug for RouteDecision
Source§impl PartialEq for RouteDecision
impl PartialEq for RouteDecision
impl Eq for RouteDecision
impl StructuralPartialEq for RouteDecision
Auto Trait Implementations§
impl Freeze for RouteDecision
impl RefUnwindSafe for RouteDecision
impl Send for RouteDecision
impl Sync for RouteDecision
impl Unpin for RouteDecision
impl UnsafeUnpin for RouteDecision
impl UnwindSafe for RouteDecision
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.