pub struct AuthTargetProxy { /* private fields */ }
Implementations§
source§impl AuthTargetProxy
impl AuthTargetProxy
sourcepub fn take_event_stream(&self) -> AuthTargetEventStream
pub fn take_event_stream(&self) -> AuthTargetEventStream
Get a Stream of events from the remote end of the AuthTarget protocol
Panics
Panics if the event stream was already taken.
sourcepub fn get_auth_state(&self) -> QueryResponseFut<AuthTargetGetAuthStateResult>
pub fn get_auth_state(&self) -> QueryResponseFut<AuthTargetGetAuthStateResult>
Returns the current AuthState
of the target.
Returns: auth_state
The target’s current authentication state.
sourcepub fn register_auth_listener(
&self,
payload: AuthTargetRegisterAuthListenerRequest
) -> QueryResponseFut<AuthTargetRegisterAuthListenerResult>
pub fn register_auth_listener( &self, payload: AuthTargetRegisterAuthListenerRequest ) -> QueryResponseFut<AuthTargetRegisterAuthListenerResult>
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.
Trait Implementations§
source§impl AuthTargetProxyInterface for AuthTargetProxy
impl AuthTargetProxyInterface for AuthTargetProxy
type GetAuthStateResponseFut = QueryResponseFut<Result<AuthState, Error>>
fn get_auth_state(&self) -> Self::GetAuthStateResponseFut
type RegisterAuthListenerResponseFut = QueryResponseFut<Result<(), Error>>
fn register_auth_listener( &self, payload: AuthTargetRegisterAuthListenerRequest ) -> Self::RegisterAuthListenerResponseFut
source§impl Clone for AuthTargetProxy
impl Clone for AuthTargetProxy
source§fn clone(&self) -> AuthTargetProxy
fn clone(&self) -> AuthTargetProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AuthTargetProxy
impl Debug for AuthTargetProxy
source§impl Proxy for AuthTargetProxy
impl Proxy for AuthTargetProxy
§type Protocol = AuthTargetMarker
type Protocol = AuthTargetMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more