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§
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>
Sourcefn has_multiple_vias(&self) -> bool
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.
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>
Sourcefn session_id_header(&self) -> Option<&SessionId>
fn session_id_header(&self) -> Option<&SessionId>
RFC 7989 Session-ID header, when present.
Sourcefn history_info_headers(&self) -> Vec<&HistoryInfo>
fn history_info_headers(&self) -> Vec<&HistoryInfo>
All History-Info header lines (RFC 7044 allows multiple lines, each possibly holding comma-joined hi-entries).
Sourcefn history_info_entries(&self) -> Result<Vec<HistoryInfoEntry>, Error>
fn history_info_entries(&self) -> Result<Vec<HistoryInfoEntry>, Error>
Flattened typed hi-entries across every History-Info header line.
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 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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".