Enum stream_httparse::header::HeaderKey [−][src]
Expand description
Allows the HeaderKey to take the form of a variety of different valid Types, mostly related to their lifetimes. This however also gives more control over how they are compared to each other, ignoring case in this case
use stream_httparse::header::HeaderKey;
assert_eq!(HeaderKey::StrRef("TeSt"), HeaderKey::StrRef("test"));Variants
StrRef(&'a str)
Tuple Fields
0: &'a strStores the Key as a refernce to a String
Str(String)
Tuple Fields
0: StringStores the Key as an owned String
Implementations
Serializes the Key into the Buffer by appending the Data to it
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for HeaderKey<'a>
impl<'a> UnwindSafe for HeaderKey<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
