pub struct ShortTermCredentials { /* private fields */ }Expand description
Structure for holding the required credentials for handling short-term STUN credentials
Implementations§
Source§impl ShortTermCredentials
impl ShortTermCredentials
Sourcepub fn new(password: String) -> Self
pub fn new(password: String) -> Self
Create a new set of ShortTermCredentials
§Examples
let credentials = ShortTermCredentials::new("password".to_string());
assert_eq!(credentials.password(), "password");Sourcepub fn make_key(&self) -> IntegrityKey
pub fn make_key(&self) -> IntegrityKey
Compute a key for caching purposes.
Trait Implementations§
Source§impl Clone for ShortTermCredentials
impl Clone for ShortTermCredentials
Source§fn clone(&self) -> ShortTermCredentials
fn clone(&self) -> ShortTermCredentials
Returns a duplicate 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 ShortTermCredentials
impl Debug for ShortTermCredentials
Source§impl From<ShortTermCredentials> for MessageIntegrityCredentials
impl From<ShortTermCredentials> for MessageIntegrityCredentials
Source§fn from(value: ShortTermCredentials) -> Self
fn from(value: ShortTermCredentials) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ShortTermCredentials
impl PartialEq for ShortTermCredentials
impl Eq for ShortTermCredentials
impl StructuralPartialEq for ShortTermCredentials
Auto Trait Implementations§
impl Freeze for ShortTermCredentials
impl RefUnwindSafe for ShortTermCredentials
impl Send for ShortTermCredentials
impl Sync for ShortTermCredentials
impl Unpin for ShortTermCredentials
impl UnsafeUnpin for ShortTermCredentials
impl UnwindSafe for ShortTermCredentials
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