pub struct AuthSubscription { /* private fields */ }Expand description
Subscription handle for auth state change events.
Created by AuthClient::on_auth_state_change(). Use next()
to await the next event.
Implementations§
Source§impl AuthSubscription
impl AuthSubscription
Sourcepub async fn next(&mut self) -> Option<AuthStateChange>
pub async fn next(&mut self) -> Option<AuthStateChange>
Await the next auth state change event.
Returns None if the sender has been dropped (client deallocated).
Skips over lagged messages automatically.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthSubscription
impl RefUnwindSafe for AuthSubscription
impl Send for AuthSubscription
impl Sync for AuthSubscription
impl Unpin for AuthSubscription
impl UnsafeUnpin for AuthSubscription
impl UnwindSafe for AuthSubscription
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