pub struct OnError(/* private fields */);Expand description
The callback executed upon failed login that takes Option<String> as an argument.
§Usage
use ic_auth_client::callback::OnError;
let on_error = OnError::from(|err| {
// Handle failed login
});Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnError
impl !RefUnwindSafe for OnError
impl Send for OnError
impl Sync for OnError
impl Unpin for OnError
impl !UnwindSafe for OnError
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