pub struct ProtectedHeaderSet(/* private fields */);Expand description
An immutable, ordered set of ProtectedHeaders behind one Arc. Cloning
clones that handle; the headers and their values are shared.
Implementations§
Source§impl ProtectedHeaderSet
impl ProtectedHeaderSet
Sourcepub fn new(headers: Vec<ProtectedHeader>) -> Self
pub fn new(headers: Vec<ProtectedHeader>) -> Self
The headers, in the order given.
pub fn headers(&self) -> &[ProtectedHeader]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn satisfies(&self, metadata: &[HealthCheckHeader]) -> bool
pub fn satisfies(&self, metadata: &[HealthCheckHeader]) -> bool
Whether this set holds the value behind every header of metadata, in
order: same count, same names, same fingerprints. A configuration that
names headers is only as good as the set that satisfies it.
Trait Implementations§
Source§impl Clone for ProtectedHeaderSet
impl Clone for ProtectedHeaderSet
Auto Trait Implementations§
impl Freeze for ProtectedHeaderSet
impl RefUnwindSafe for ProtectedHeaderSet
impl Send for ProtectedHeaderSet
impl Sync for ProtectedHeaderSet
impl Unpin for ProtectedHeaderSet
impl UnsafeUnpin for ProtectedHeaderSet
impl UnwindSafe for ProtectedHeaderSet
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