pub trait SsoEnrollmentContext: Send + Sync {
// Required methods
fn cancelled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
status: EnrollmentStatus,
message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn provide_verification_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = VerificationCodeResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn end_enrollment<'life0, 'async_trait>(
&'life0 self,
result: SsoEnrollmentResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A device enrollment in progress: the UI shows its stage, asks for the verification code, and lets the user cancel.
Required Methods§
Sourcefn 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.
Sourcefn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
status: EnrollmentStatus,
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: EnrollmentStatus,
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.
Sourcefn provide_verification_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = VerificationCodeResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn provide_verification_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = VerificationCodeResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asks for the verification code the approving device shows.
Sourcefn end_enrollment<'life0, 'async_trait>(
&'life0 self,
result: SsoEnrollmentResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn end_enrollment<'life0, 'async_trait>(
&'life0 self,
result: SsoEnrollmentResult,
) -> 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".