pub struct PPreferredIdentity(/* private fields */);Expand description
One strict P-Preferred-Identity value (RFC 3325 §9.2).
PPreferredIdentityList is the complete construction and receive-list API.
Implementations§
Source§impl PPreferredIdentity
impl PPreferredIdentity
Sourcepub fn new(address: Address) -> Result<Self, HeaderError>
pub fn new(address: Address) -> Result<Self, HeaderError>
Construct one strict RFC 3325 value from a parsed address.
Only SIP, SIPS and TEL are accepted, and RFC 8217’s name-addr rule is enforced. Use the checked complete-list type when constructing a whole field.
Trait Implementations§
Source§impl Clone for PPreferredIdentity
impl Clone for PPreferredIdentity
Source§fn clone(&self) -> PPreferredIdentity
fn clone(&self) -> PPreferredIdentity
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 PPreferredIdentity
impl Debug for PPreferredIdentity
Source§impl Deref for PPreferredIdentity
impl Deref for PPreferredIdentity
Source§impl TypedHeader for PPreferredIdentity
impl TypedHeader for PPreferredIdentity
Source§const NAME: HeaderName = HeaderName::PPreferredIdentity
const NAME: HeaderName = HeaderName::PPreferredIdentity
The header this type reads.
Source§const VALIDATE_LIST: bool = true
const VALIDATE_LIST: bool = true
Whether
Headers::typed_all must collect and validate the complete field before yielding. Read moreSource§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§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
Auto Trait Implementations§
impl !Freeze for PPreferredIdentity
impl RefUnwindSafe for PPreferredIdentity
impl Send for PPreferredIdentity
impl Sync for PPreferredIdentity
impl Unpin for PPreferredIdentity
impl UnsafeUnpin for PPreferredIdentity
impl UnwindSafe for PPreferredIdentity
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