pub enum AuthRequest {
Prompt {
prompt: AuthPrompt,
reply: Sender<String>,
cancel: CancellationToken,
},
Notify(AuthEvent),
}Expand description
A request from a sign-in to the UI.
Variants§
Prompt
Ask a question. Dropping reply cancels the sign-in, and cancel fires
when the sign-in no longer needs the answer.
Fields
§
prompt: AuthPromptThe question.
§
cancel: CancellationTokenFires when the prompt is withdrawn.
Notify(AuthEvent)
Show something.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AuthRequest
impl !UnwindSafe for AuthRequest
impl Forget for AuthRequest
impl Freeze for AuthRequest
impl Send for AuthRequest
impl Sync for AuthRequest
impl Unpin for AuthRequest
impl UnsafeUnpin for AuthRequest
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