pub struct AuthClient { /* private fields */ }Implementations§
Source§impl AuthClient
impl AuthClient
pub fn new(handle: NativeRequestHandle<Auth>) -> Self
pub fn from_dependencies( dependencies: &ModuleDependencies, ) -> Result<Self, RuntimeFailure>
pub async fn authenticate( &self, request: AuthenticateRequest, ) -> Result<AuthenticateResponse, AuthInvocationError>
pub async fn authenticate_with_context( &self, context: InvocationContext, request: AuthenticateRequest, ) -> Result<AuthenticateResponse, AuthInvocationError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AuthClient
impl !Send for AuthClient
impl !Sync for AuthClient
impl !UnwindSafe for AuthClient
impl Freeze for AuthClient
impl Unpin for AuthClient
impl UnsafeUnpin for AuthClient
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