pub struct CSeq {
pub sequence: u32,
pub method: Method,
}Expand description
The CSeq header (RFC 3261 §20.16): a sequence number and the method it belongs to.
Fields§
§sequence: u32The sequence number.
method: MethodThe method, which must match the request line (RFC 4475 §3.1.2.17).
Trait Implementations§
Source§impl TypedHeader for CSeq
impl TypedHeader for CSeq
Source§const NAME: HeaderName = HeaderName::CSeq
const NAME: HeaderName = HeaderName::CSeq
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 CSeq
impl StructuralPartialEq for CSeq
Auto Trait Implementations§
impl !Freeze for CSeq
impl RefUnwindSafe for CSeq
impl Send for CSeq
impl Sync for CSeq
impl Unpin for CSeq
impl UnsafeUnpin for CSeq
impl UnwindSafe for CSeq
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