pub struct MinSe(pub Duration);Expand description
The Min-SE header (RFC 4028 §5): the shortest interval the sender will accept.
Tuple Fields§
§0: DurationTrait Implementations§
Source§impl TypedHeader for MinSe
impl TypedHeader for MinSe
Source§const NAME: HeaderName = HeaderName::MinSe
const NAME: HeaderName = HeaderName::MinSe
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 Copy for MinSe
impl Eq for MinSe
impl StructuralPartialEq for MinSe
Auto Trait Implementations§
impl Freeze for MinSe
impl RefUnwindSafe for MinSe
impl Send for MinSe
impl Sync for MinSe
impl Unpin for MinSe
impl UnsafeUnpin for MinSe
impl UnwindSafe for MinSe
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