pub struct ManagedAuthState { /* private fields */ }Implementations§
Source§impl ManagedAuthState
impl ManagedAuthState
pub fn new() -> Self
pub fn token_provider(&self) -> Box<dyn Fn() -> Option<String> + Send + Sync>
pub fn current_session(&self) -> Option<PlutoAuthSession>
pub fn set_session(&self, session: PlutoAuthSession)
pub fn clear(&self)
pub async fn sign_in_with_pluto( &self, config: PlutoSsoConfig, ) -> Result<PlutoAuthSession>
Trait Implementations§
Source§impl Clone for ManagedAuthState
impl Clone for ManagedAuthState
Auto Trait Implementations§
impl Freeze for ManagedAuthState
impl RefUnwindSafe for ManagedAuthState
impl Send for ManagedAuthState
impl Sync for ManagedAuthState
impl Unpin for ManagedAuthState
impl UnsafeUnpin for ManagedAuthState
impl UnwindSafe for ManagedAuthState
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