pub struct Allow(pub TokenList);Expand description
The Allow header (RFC 3261 §20.5).
Tuple Fields§
§0: TokenListTrait Implementations§
Source§impl TypedHeader for Allow
impl TypedHeader for Allow
Source§const NAME: HeaderName = HeaderName::Allow
const NAME: HeaderName = HeaderName::Allow
The header this type reads.
Source§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Parse one header value. The value arrives unfolded and trimmed.
Source§const VALIDATE_LIST: bool = false
const VALIDATE_LIST: bool = false
Whether
Headers::typed_all must collect and validate the complete field before yielding. Read moreSource§fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
Parse every value in one header row. Read more
Source§fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
Validate all decoded values of this field across the complete message. Read more
impl Eq for Allow
impl StructuralPartialEq for Allow
Auto Trait Implementations§
impl Freeze for Allow
impl RefUnwindSafe for Allow
impl Send for Allow
impl Sync for Allow
impl Unpin for Allow
impl UnsafeUnpin for Allow
impl UnwindSafe for Allow
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