pub struct Http2Expectations { /* private fields */ }Expand description
HTTP/2 expectations as a compact bitmask.
The runner compares the supplied observation against the profile
only for the checks whose bit is set. Encoding expectations as a
u8 bitmask keeps TransportProfile free of
clippy::struct_excessive_bools lints — three separate bool
fields would otherwise trip the lint even though each flag is
independently meaningful.
Implementations§
Source§impl Http2Expectations
impl Http2Expectations
Sourcepub const PSEUDO_HEADER_ORDER: u8
pub const PSEUDO_HEADER_ORDER: u8
Pseudo-header order comparison is enabled.
Sourcepub const HEADER_ORDER: u8
pub const HEADER_ORDER: u8
Regular header order comparison is enabled.
Trait Implementations§
Source§impl Clone for Http2Expectations
impl Clone for Http2Expectations
Source§fn clone(&self) -> Http2Expectations
fn clone(&self) -> Http2Expectations
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 Http2Expectations
impl Debug for Http2Expectations
Source§impl Default for Http2Expectations
impl Default for Http2Expectations
Source§impl<'de> Deserialize<'de> for Http2Expectations
impl<'de> Deserialize<'de> for Http2Expectations
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
Source§impl Hash for Http2Expectations
impl Hash for Http2Expectations
Source§impl PartialEq for Http2Expectations
impl PartialEq for Http2Expectations
Source§impl Serialize for Http2Expectations
impl Serialize for Http2Expectations
impl Copy for Http2Expectations
impl Eq for Http2Expectations
impl StructuralPartialEq for Http2Expectations
Auto Trait Implementations§
impl Freeze for Http2Expectations
impl RefUnwindSafe for Http2Expectations
impl Send for Http2Expectations
impl Sync for Http2Expectations
impl Unpin for Http2Expectations
impl UnsafeUnpin for Http2Expectations
impl UnwindSafe for Http2Expectations
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
Compare self to
key and return true if they are equal.