pub enum AlpnMatcher {
Any,
OneOf(BTreeSet<Vec<u8>>),
}Expand description
How a route entry’s cluster accepts the client’s ALPN offer.
Variants§
Any
Matches regardless of what the client offered (including a client
that sent no alpn extension at all). The catch-all: fires only
once no OneOf entry matched any client-offered protocol.
OneOf(BTreeSet<Vec<u8>>)
Matches when at least one of the client’s offered protocols is a member of this set.
Trait Implementations§
Source§impl Clone for AlpnMatcher
impl Clone for AlpnMatcher
Source§fn clone(&self) -> AlpnMatcher
fn clone(&self) -> AlpnMatcher
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 moreSource§impl Debug for AlpnMatcher
impl Debug for AlpnMatcher
impl Eq for AlpnMatcher
Source§impl PartialEq for AlpnMatcher
impl PartialEq for AlpnMatcher
impl StructuralPartialEq for AlpnMatcher
Auto Trait Implementations§
impl Freeze for AlpnMatcher
impl RefUnwindSafe for AlpnMatcher
impl Send for AlpnMatcher
impl Sync for AlpnMatcher
impl Unpin for AlpnMatcher
impl UnsafeUnpin for AlpnMatcher
impl UnwindSafe for AlpnMatcher
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.