pub struct TurnCredentials { /* private fields */ }Expand description
Credentials used for a TURN user.
Implementations§
Source§impl TurnCredentials
impl TurnCredentials
Sourcepub fn into_long_term_credentials(self, realm: &str) -> LongTermKeyCredentials
pub fn into_long_term_credentials(self, realm: &str) -> LongTermKeyCredentials
Transform these credentials into some LongTermCredentials for use in a STUN context.
Sourcepub fn new(username: &str, password: &str) -> Self
pub fn new(username: &str, password: &str) -> Self
Construct a new set of TurnCredentials
Trait Implementations§
Source§impl Clone for TurnCredentials
impl Clone for TurnCredentials
Source§fn clone(&self) -> TurnCredentials
fn clone(&self) -> TurnCredentials
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 TurnCredentials
impl Debug for TurnCredentials
Source§impl From<TurnCredentials> for LongTermCredentials
impl From<TurnCredentials> for LongTermCredentials
Source§fn from(value: TurnCredentials) -> Self
fn from(value: TurnCredentials) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TurnCredentials
impl PartialEq for TurnCredentials
impl Eq for TurnCredentials
impl StructuralPartialEq for TurnCredentials
Auto Trait Implementations§
impl Freeze for TurnCredentials
impl RefUnwindSafe for TurnCredentials
impl Send for TurnCredentials
impl Sync for TurnCredentials
impl Unpin for TurnCredentials
impl UnsafeUnpin for TurnCredentials
impl UnwindSafe for TurnCredentials
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