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