pub enum PrivacyValue {
User,
Header,
Session,
None,
Critical,
Id,
History,
Extension(Vec<u8>),
}Expand description
One value from a Privacy header.
The first seven variants are the values in the IANA SIP Privacy Header Field Values registry.
Extension retains the spelling of a later token so policy can recognize it without waiting
for this enum to gain another variant.
Variants§
User
Request user-level privacy.
Header
Request privacy for identifying routing headers.
Session
Request privacy for session media.
None
Explicitly request no privacy service.
Critical
Require requested privacy services to succeed or the request to fail.
Id
Request privacy for asserted identity (RFC 3325 §9.3).
History
Request privacy for History-Info (RFC 7044 §10.1).
Extension(Vec<u8>)
A later registered token, preserving its spelling.
Implementations§
Trait Implementations§
Source§impl Clone for PrivacyValue
impl Clone for PrivacyValue
Source§fn clone(&self) -> PrivacyValue
fn clone(&self) -> PrivacyValue
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 PrivacyValue
impl Debug for PrivacyValue
Source§impl Hash for PrivacyValue
impl Hash for PrivacyValue
Source§impl PartialEq for PrivacyValue
impl PartialEq for PrivacyValue
Source§fn eq(&self, other: &PrivacyValue) -> bool
fn eq(&self, other: &PrivacyValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PrivacyValue
impl StructuralPartialEq for PrivacyValue
Auto Trait Implementations§
impl Freeze for PrivacyValue
impl RefUnwindSafe for PrivacyValue
impl Send for PrivacyValue
impl Sync for PrivacyValue
impl Unpin for PrivacyValue
impl UnsafeUnpin for PrivacyValue
impl UnwindSafe for PrivacyValue
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