pub struct AuthStateListener {
pub observer: PartialObserver<Arc<User>>,
}Fields§
§observer: PartialObserver<Arc<User>>Implementations§
Source§impl AuthStateListener
impl AuthStateListener
Sourcepub fn new(observer: PartialObserver<Arc<User>>) -> Self
pub fn new(observer: PartialObserver<Arc<User>>) -> Self
Wraps an observer so it can be registered with the Auth state machine.
Trait Implementations§
Source§impl Clone for AuthStateListener
impl Clone for AuthStateListener
Source§fn clone(&self) -> AuthStateListener
fn clone(&self) -> AuthStateListener
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 AuthStateListener
impl !RefUnwindSafe for AuthStateListener
impl Send for AuthStateListener
impl Sync for AuthStateListener
impl Unpin for AuthStateListener
impl !UnwindSafe for AuthStateListener
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