pub struct AuthClient { /* private fields */ }Implementations§
Source§impl AuthClient
impl AuthClient
pub fn new(handle: NativeRequestHandle<Auth>) -> Self
pub fn from_dependencies( dependencies: &PluginDependencies, ) -> 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§
Source§impl CapabilityClient for AuthClient
impl CapabilityClient for AuthClient
Source§const CAPABILITY_ID: &'static str = CAPABILITY_ID
const CAPABILITY_ID: &'static str = CAPABILITY_ID
Stable Capability identity required by this client.
Source§const DESCRIPTOR_VERSION: &'static str = DESCRIPTOR_VERSION
const DESCRIPTOR_VERSION: &'static str = DESCRIPTOR_VERSION
Exact Descriptor version understood by this generated client.
Source§type Dependencies = PluginDependencies
type Dependencies = PluginDependencies
Adapter-owned dependency view used to connect this client.
Source§type Error = RuntimeFailure
type Error = RuntimeFailure
Adapter-owned failure returned when connection cannot complete.
Source§fn from_dependencies(
dependencies: &PluginDependencies,
) -> Result<Self, RuntimeFailure>
fn from_dependencies( dependencies: &PluginDependencies, ) -> Result<Self, RuntimeFailure>
Connects this client to one Plugin Instance’s resolved dependencies.
Source§fn already_connected() -> RuntimeFailure
fn already_connected() -> RuntimeFailure
Creates the adapter failure for an invalid second connection attempt.
Source§impl CapabilityClientMany for AuthClient
impl CapabilityClientMany for AuthClient
Source§fn many_from_dependencies(
dependencies: &PluginDependencies,
) -> Result<Vec<BoundCapabilityClient<Self>>, RuntimeFailure>
fn many_from_dependencies( dependencies: &PluginDependencies, ) -> Result<Vec<BoundCapabilityClient<Self>>, RuntimeFailure>
Connects one typed client per bound provider without performing discovery.
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