pub struct AuthTargetSynchronousProxy { /* private fields */ }
Implementations§
source§impl AuthTargetSynchronousProxy
impl AuthTargetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<AuthTargetEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<AuthTargetEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn get_auth_state(
&self,
___deadline: Time
) -> Result<AuthTargetGetAuthStateResult, Error>
pub fn get_auth_state( &self, ___deadline: Time ) -> Result<AuthTargetGetAuthStateResult, Error>
Returns the current AuthState
of the target.
Returns: auth_state
The target’s current authentication state.
sourcepub fn register_auth_listener(
&self,
payload: AuthTargetRegisterAuthListenerRequest,
___deadline: Time
) -> Result<AuthTargetRegisterAuthListenerResult, Error>
pub fn register_auth_listener( &self, payload: AuthTargetRegisterAuthListenerRequest, ___deadline: Time ) -> Result<AuthTargetRegisterAuthListenerResult, Error>
Connects a channel that will receive changes in the authentication state of the target.
listener
[required] The client end of an AuthListener
channel
initial_state
If true, the listener will receive the initial auth
state in addition to any changes.
granularity
An AuthChangeGranularity
expressing the magnitude of
change in authentication state that will lead to
AuthStateChange events.