pub struct CachedCredential { /* private fields */ }Expand description
The realm, nonce and password algorithm a TURN server accepted an authenticated request
with, and the user name and password they were used with: what RFC 8489 §9.2.3.2 has a
client cache “for subsequent communications with the server”. A later client to the same
server with the same login starts its Allocate with them
(Client::use_cached_credential) instead of an unauthenticated request that draws a 401,
one round trip less. It is taken only by a client of the same server address and login.
Implementations§
Source§impl CachedCredential
impl CachedCredential
Sourcepub fn server(&self) -> SocketAddr
pub fn server(&self) -> SocketAddr
The server the credential was accepted by.
Sourcepub fn is_for_same_server_and_login(&self, other: &CachedCredential) -> bool
pub fn is_for_same_server_and_login(&self, other: &CachedCredential) -> bool
Whether other is for the same server address and the same login, so that the later
of the two replaces the earlier in a cache.
Trait Implementations§
Source§impl Clone for CachedCredential
impl Clone for CachedCredential
Auto Trait Implementations§
impl Forget for CachedCredential
impl Freeze for CachedCredential
impl Move for CachedCredential
impl RefUnwindSafe for CachedCredential
impl Send for CachedCredential
impl Sync for CachedCredential
impl Unpin for CachedCredential
impl UnsafeUnpin for CachedCredentialwhere
*const ArcInner<Credential> is !null: UnsafeUnpin,
PhantomData<ArcInner<Credential>>: UnsafeUnpin,
impl UnwindSafe for CachedCredentialwhere
Arc<Credential>: UnwindSafe,
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