Struct xmpp_parsers::jingle_dtls_srtp::Fingerprint
source · pub struct Fingerprint {
pub hash: Algo,
pub setup: Setup,
pub value: Vec<u8>,
}
Expand description
Fingerprint of the key used for a DTLS handshake.
Fields§
§hash: Algo
The hash algorithm used for this fingerprint.
setup: Setup
Indicates which of the end points should initiate the TCP connection establishment.
value: Vec<u8>
Hash value of this fingerprint.
Implementations§
source§impl Fingerprint
impl Fingerprint
sourcepub fn from_hash(setup: Setup, hash: Hash) -> Fingerprint
pub fn from_hash(setup: Setup, hash: Hash) -> Fingerprint
Create a new Fingerprint from a Setup and a Hash.
sourcepub fn from_colon_separated_hex(
setup: Setup,
algo: &str,
hash: &str,
) -> Result<Fingerprint, Error>
pub fn from_colon_separated_hex( setup: Setup, algo: &str, hash: &str, ) -> Result<Fingerprint, Error>
Create a new Fingerprint from a Setup and parsing the hash.
Trait Implementations§
source§impl AsXml for Fingerprint
impl AsXml for Fingerprint
source§type ItemIter<'xso_proc_as_xml_iter_lifetime> = FingerprintAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
type ItemIter<'xso_proc_as_xml_iter_lifetime> = FingerprintAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
The iterator type. Read more
source§fn as_xml_iter(&self) -> Result<Self::ItemIter<'_>, Error>
fn as_xml_iter(&self) -> Result<Self::ItemIter<'_>, Error>
Return an iterator which emits the contents of the struct or enum as
serialisable [
Item
] items.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 From<Fingerprint> for Element
impl From<Fingerprint> for Element
source§fn from(other: Fingerprint) -> Self
fn from(other: Fingerprint) -> Self
Converts to this type from the input type.
source§impl FromXml for Fingerprint
impl FromXml for Fingerprint
source§impl PartialEq for Fingerprint
impl PartialEq for Fingerprint
source§impl TryFrom<Element> for Fingerprint
impl TryFrom<Element> 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
)