pub enum Fingerprint {
Encodable(EncodableFingerprint),
Decodable(DecodableFingerprint),
}
Expand description
The Fingerprint
attribute MAY be present in all STUN messages.
When present, the Fingerprint
attribute MUST be the last attribute in
the message and thus will appear after
MessageIntegrity
and
MessageIntegritySha256
.
§Examples
let attr = Fingerprint::default();
assert_eq!(attr.attribute_type(), AttributeType::from(0x8028));
Variants§
Encodable(EncodableFingerprint)
The encodable Fingerprint
attribute,
Decodable(DecodableFingerprint)
The decoded Fingerprint
attribute value.
Implementations§
Trait Implementations§
source§impl Clone for Fingerprint
impl Clone for Fingerprint
source§fn clone(&self) -> Fingerprint
fn clone(&self) -> Fingerprint
Returns a copy of the value. Read more
1.0.0 · 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 Fingerprint
impl Debug for Fingerprint
source§impl Default for Fingerprint
impl Default for Fingerprint
source§impl From<Fingerprint> for StunAttribute
impl From<Fingerprint> for StunAttribute
source§fn from(value: Fingerprint) -> Self
fn from(value: Fingerprint) -> Self
Converts to this type from the input type.
source§impl PartialEq for Fingerprint
impl PartialEq for Fingerprint
source§impl StunAttributeType for Fingerprint
impl StunAttributeType for Fingerprint
source§fn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.
source§fn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
impl Eq for Fingerprint
impl StructuralPartialEq for Fingerprint
Auto Trait Implementations§
impl Freeze for Fingerprint
impl RefUnwindSafe for Fingerprint
impl Send for Fingerprint
impl Sync for Fingerprint
impl Unpin for Fingerprint
impl UnwindSafe for Fingerprint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)