pub enum ContactValue {
Wildcard,
Address(Address),
}Expand description
A Contact value, which may be the wildcard *.
RFC 3261 §10.2.2: Contact: * with Expires: 0 deregisters everything. It is the one
place in the grammar where a header that otherwise holds addresses holds a single asterisk
instead, and a parser that expects an address there will reject a legal deregistration.
Variants§
Trait Implementations§
Source§impl Clone for ContactValue
impl Clone for ContactValue
Source§fn clone(&self) -> ContactValue
fn clone(&self) -> ContactValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContactValue
impl Debug for ContactValue
Source§impl TypedHeader for ContactValue
impl TypedHeader for ContactValue
Source§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Decodes the wildcard, or the first address in the value; use
TypedHeader::decode_list when every one is needed.
Source§const NAME: HeaderName = HeaderName::Contact
const NAME: HeaderName = HeaderName::Contact
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 ContactValue
impl RefUnwindSafe for ContactValue
impl Send for ContactValue
impl Sync for ContactValue
impl Unpin for ContactValue
impl UnsafeUnpin for ContactValue
impl UnwindSafe for ContactValue
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