struct JsOnePasswordSsoEnrollment(ThreadBoundRunner<RawJsOnePasswordSsoEnrollment>);Expand description
Adapts the JavaScript enrollment object to OnePasswordSsoEnrollment.
Tuple Fields§
§0: ThreadBoundRunner<RawJsOnePasswordSsoEnrollment>Trait Implementations§
Source§impl SsoEnrollmentContext for JsOnePasswordSsoEnrollment
impl SsoEnrollmentContext for JsOnePasswordSsoEnrollment
Source§fn cancelled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancelled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resolves when the user cancels the enrollment. An implementation that cannot cancel never
resolves.
Source§fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
status: OnePasswordSsoEnrollmentStatus,
message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
status: OnePasswordSsoEnrollmentStatus,
message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Shows the stage the enrollment has reached.
Source§fn provide_verification_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = OnePasswordVerificationCodeResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn provide_verification_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = OnePasswordVerificationCodeResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asks for the verification code the approving device shows.
Source§fn end_enrollment<'life0, 'async_trait>(
&'life0 self,
result: OnePasswordSsoEnrollmentResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn end_enrollment<'life0, 'async_trait>(
&'life0 self,
result: OnePasswordSsoEnrollmentResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Closes the enrollment UI. Called exactly once when the enrollment ends, unless the login is
dropped halfway.
Auto Trait Implementations§
impl Freeze for JsOnePasswordSsoEnrollment
impl RefUnwindSafe for JsOnePasswordSsoEnrollment
impl Send for JsOnePasswordSsoEnrollment
impl Sync for JsOnePasswordSsoEnrollment
impl Unpin for JsOnePasswordSsoEnrollment
impl UnsafeUnpin for JsOnePasswordSsoEnrollment
impl UnwindSafe for JsOnePasswordSsoEnrollment
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more