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) -> LongTermCredentials
pub fn into_long_term_credentials(self, realm: &str) -> LongTermCredentials
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 moreAuto Trait Implementations§
impl Freeze for TurnCredentials
impl RefUnwindSafe for TurnCredentials
impl Send for TurnCredentials
impl Sync for TurnCredentials
impl Unpin 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