pub struct InitializingAuthenticator { /* private fields */ }Expand description
Represents an account in the process of being initialized,
i.e. it is not yet registered in the WorldIDRegistry contract.
Implementations§
Source§impl InitializingAuthenticator
impl InitializingAuthenticator
Sourcepub fn request_id(&self) -> &str
pub fn request_id(&self) -> &str
Returns the gateway request ID for this pending account creation.
Sourcepub async fn poll_status(
&self,
) -> Result<GatewayRequestState, AuthenticatorError>
pub async fn poll_status( &self, ) -> Result<GatewayRequestState, AuthenticatorError>
Poll the status of the World ID creation request.
§Errors
- Will error if the network request fails.
- Will error if the gateway returns an error response.
Auto Trait Implementations§
impl Freeze for InitializingAuthenticator
impl !RefUnwindSafe for InitializingAuthenticator
impl Send for InitializingAuthenticator
impl Sync for InitializingAuthenticator
impl Unpin for InitializingAuthenticator
impl UnsafeUnpin for InitializingAuthenticator
impl !UnwindSafe for InitializingAuthenticator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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