pub struct RAck {
pub rseq: u32,
pub cseq: u32,
pub method: Vec<u8>,
}Expand description
The RAck header (RFC 3262 §7.2): response-num CSeq-num Method.
All three parts are load-bearing. The response number says which provisional is being
acknowledged, and the CSeq pair says which request it belonged to — without them a PRACK
for a re-INVITE could be matched against a provisional from the original INVITE.
Fields§
§rseq: u32The RSeq of the response being acknowledged.
cseq: u32The CSeq number of the request that response answered.
method: Vec<u8>The method of that request.
Trait Implementations§
Source§impl TypedHeader for RAck
impl TypedHeader for RAck
Source§const NAME: HeaderName = HeaderName::RAck
const NAME: HeaderName = HeaderName::RAck
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 RAck
impl StructuralPartialEq for RAck
Auto Trait Implementations§
impl Freeze for RAck
impl RefUnwindSafe for RAck
impl Send for RAck
impl Sync for RAck
impl Unpin for RAck
impl UnsafeUnpin for RAck
impl UnwindSafe for RAck
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