pub struct Route(pub Address);Expand description
The Route header (RFC 3261 §20.34).
Tuple Fields§
§0: AddressImplementations§
Source§impl Route
impl Route
Sourcepub fn parse_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
pub fn parse_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
Parse a header value that may carry several comma-separated addresses.
Trait Implementations§
Source§impl TypedHeader for Route
impl TypedHeader for Route
Source§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Decodes the first address in the value; use Self::parse_list or
crate::message::Headers::typed_all when every one is needed.
Source§const NAME: HeaderName = HeaderName::Route
const NAME: HeaderName = HeaderName::Route
The header this type reads.
Source§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§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 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
Auto Trait Implementations§
impl !Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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