Skip to main content

HeadersExt

Trait HeadersExt 

Source
pub trait HeadersExt: HasHeaders {
Show 52 methods // Provided methods fn to_header(&self) -> Result<&To, Error> { ... } fn to_header_mut(&mut self) -> Result<&mut To, Error> { ... } fn from_header(&self) -> Result<&From, Error> { ... } fn from_header_mut(&mut self) -> Result<&mut From, Error> { ... } fn via_header(&self) -> Result<&Via, Error> { ... } fn top_via_header(&self) -> Result<Via, Error> { ... } fn has_multiple_vias(&self) -> bool { ... } fn via_header_mut(&mut self) -> Result<&mut Via, Error> { ... } fn call_id_header(&self) -> Result<&CallId, Error> { ... } fn call_id_header_mut(&mut self) -> Result<&mut CallId, Error> { ... } fn cseq_header(&self) -> Result<&CSeq, Error> { ... } fn cseq_header_mut(&mut self) -> Result<&mut CSeq, Error> { ... } fn max_forwards_header(&self) -> Result<&MaxForwards, Error> { ... } fn max_forwards_header_mut(&mut self) -> Result<&mut MaxForwards, Error> { ... } fn contact_header(&self) -> Result<&Contact, Error> { ... } fn contact_header_mut(&mut self) -> Result<&mut Contact, Error> { ... } fn contact_headers(&self) -> Vec<&Contact> { ... } fn session_id_header(&self) -> Option<&SessionId> { ... } fn history_info_headers(&self) -> Vec<&HistoryInfo> { ... } fn history_info_entries(&self) -> Result<Vec<HistoryInfoEntry>, Error> { ... } fn typed_contact_headers(&self) -> Result<Vec<Contact>, Error> { ... } fn record_route_headers(&self) -> Vec<&RecordRoute> { ... } fn record_route_header(&self) -> Option<&RecordRoute> { ... } fn typed_record_route_headers(&self) -> Result<Vec<RecordRoute>, Error> { ... } fn route_headers(&self) -> Vec<&Route> { ... } fn route_header(&self) -> Option<&Route> { ... } fn typed_route_headers(&self) -> Result<Vec<Route>, Error> { ... } fn service_route_headers(&self) -> Vec<&ServiceRoute> { ... } fn service_route_header(&self) -> Option<&ServiceRoute> { ... } fn typed_service_route_headers(&self) -> Result<Vec<ServiceRoute>, Error> { ... } fn user_agent_header(&self) -> Option<&UserAgent> { ... } fn authorization_header(&self) -> Option<&Authorization> { ... } fn www_authenticate_header(&self) -> Option<&WwwAuthenticate> { ... } fn expires_header(&self) -> Option<&Expires> { ... } fn min_expires_header(&self) -> Option<&MinExpires> { ... } fn reason_header(&self) -> Option<&Reason> { ... } fn refer_to_header(&self) -> Option<&ReferTo> { ... } fn referred_by_header(&self) -> Option<&ReferredBy> { ... } fn session_expires_header(&self) -> Option<&SessionExpires> { ... } fn p_asserted_identity_header(&self) -> Option<&PAssertedIdentity> { ... } fn call_info_header(&self) -> Option<&CallInfo> { ... } fn call_info_headers(&self) -> Vec<&CallInfo> { ... } fn user_to_user_header(&self) -> Option<&UserToUser> { ... } fn user_to_user_headers(&self) -> Vec<&UserToUser> { ... } fn replaces_header(&self) -> Option<&Replaces> { ... } fn privacy_header(&self) -> Option<&Privacy> { ... } fn path_headers(&self) -> Vec<&Path> { ... } fn rseq_value(&self) -> Option<u32> { ... } fn rack_value(&self) -> Option<(u32, u32, Method)> { ... } fn header_value(&self, name: &str) -> Option<String> { ... } fn header_contains_token(&self, name: &str, token: &str) -> bool { ... } fn transaction_id(&self) -> Result<Option<Branch>, Error> { ... }
}

Provided Methods§

Source

fn to_header(&self) -> Result<&To, Error>

Source

fn to_header_mut(&mut self) -> Result<&mut To, Error>

Source

fn from_header(&self) -> Result<&From, Error>

Source

fn from_header_mut(&mut self) -> Result<&mut From, Error>

Source

fn via_header(&self) -> Result<&Via, Error>

Source

fn top_via_header(&self) -> Result<Via, Error>

Source

fn has_multiple_vias(&self) -> bool

Whether Via contains another hop, including comma-separated entries. Inconclusive values do not make an otherwise usable message invalid.

Source

fn via_header_mut(&mut self) -> Result<&mut Via, Error>

Source

fn call_id_header(&self) -> Result<&CallId, Error>

Source

fn call_id_header_mut(&mut self) -> Result<&mut CallId, Error>

Source

fn cseq_header(&self) -> Result<&CSeq, Error>

Source

fn cseq_header_mut(&mut self) -> Result<&mut CSeq, Error>

Source

fn max_forwards_header(&self) -> Result<&MaxForwards, Error>

Source

fn max_forwards_header_mut(&mut self) -> Result<&mut MaxForwards, Error>

Source

fn contact_header(&self) -> Result<&Contact, Error>

Source

fn contact_header_mut(&mut self) -> Result<&mut Contact, Error>

Source

fn contact_headers(&self) -> Vec<&Contact>

Source

fn session_id_header(&self) -> Option<&SessionId>

RFC 7989 Session-ID header, when present.

Source

fn history_info_headers(&self) -> Vec<&HistoryInfo>

All History-Info header lines (RFC 7044 allows multiple lines, each possibly holding comma-joined hi-entries).

Source

fn history_info_entries(&self) -> Result<Vec<HistoryInfoEntry>, Error>

Flattened typed hi-entries across every History-Info header line.

Source

fn typed_contact_headers(&self) -> Result<Vec<Contact>, Error>

Source

fn record_route_headers(&self) -> Vec<&RecordRoute>

Source

fn record_route_header(&self) -> Option<&RecordRoute>

Source

fn typed_record_route_headers(&self) -> Result<Vec<RecordRoute>, Error>

Source

fn route_headers(&self) -> Vec<&Route>

Source

fn route_header(&self) -> Option<&Route>

Source

fn typed_route_headers(&self) -> Result<Vec<Route>, Error>

Source

fn service_route_headers(&self) -> Vec<&ServiceRoute>

Source

fn service_route_header(&self) -> Option<&ServiceRoute>

Source

fn typed_service_route_headers(&self) -> Result<Vec<ServiceRoute>, Error>

Source

fn user_agent_header(&self) -> Option<&UserAgent>

Source

fn authorization_header(&self) -> Option<&Authorization>

Source

fn www_authenticate_header(&self) -> Option<&WwwAuthenticate>

Source

fn expires_header(&self) -> Option<&Expires>

Source

fn min_expires_header(&self) -> Option<&MinExpires>

Source

fn reason_header(&self) -> Option<&Reason>

Source

fn refer_to_header(&self) -> Option<&ReferTo>

Source

fn referred_by_header(&self) -> Option<&ReferredBy>

Source

fn session_expires_header(&self) -> Option<&SessionExpires>

Source

fn p_asserted_identity_header(&self) -> Option<&PAssertedIdentity>

Source

fn call_info_header(&self) -> Option<&CallInfo>

Source

fn call_info_headers(&self) -> Vec<&CallInfo>

Source

fn user_to_user_header(&self) -> Option<&UserToUser>

Source

fn user_to_user_headers(&self) -> Vec<&UserToUser>

Source

fn replaces_header(&self) -> Option<&Replaces>

Source

fn privacy_header(&self) -> Option<&Privacy>

Source

fn path_headers(&self) -> Vec<&Path>

Source

fn rseq_value(&self) -> Option<u32>

Source

fn rack_value(&self) -> Option<(u32, u32, Method)>

Source

fn header_value(&self, name: &str) -> Option<String>

Source

fn header_contains_token(&self, name: &str, token: &str) -> bool

Source

fn transaction_id(&self) -> Result<Option<Branch>, Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§