pub struct BrowserLoginChallenge { /* private fields */ }Expand description
An in-progress browser login flow waiting for the auth callback.
Implementations§
Source§impl BrowserLoginChallenge
impl BrowserLoginChallenge
Sourcepub async fn complete(
self,
auth_url: &str,
nats_servers: &str,
) -> Result<AdminLoginOutcome, TrellisAuthError>
pub async fn complete( self, auth_url: &str, nats_servers: &str, ) -> Result<AdminLoginOutcome, TrellisAuthError>
Wait for the callback, bind the session, and confirm the user is an admin.
Auto Trait Implementations§
impl Freeze for BrowserLoginChallenge
impl !RefUnwindSafe for BrowserLoginChallenge
impl Send for BrowserLoginChallenge
impl Sync for BrowserLoginChallenge
impl Unpin for BrowserLoginChallenge
impl UnsafeUnpin for BrowserLoginChallenge
impl !UnwindSafe for BrowserLoginChallenge
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