pub struct PersonaProxy { /* private fields */ }
Implementations§
source§impl PersonaProxy
impl PersonaProxy
sourcepub fn take_event_stream(&self) -> PersonaEventStream
pub fn take_event_stream(&self) -> PersonaEventStream
Get a Stream of events from the remote end of the Persona 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.
sourcepub fn get_lifetime(&self) -> QueryResponseFut<Lifetime>
pub fn get_lifetime(&self) -> QueryResponseFut<Lifetime>
Returns the lifetime of this persona.
Trait Implementations§
source§impl Clone for PersonaProxy
impl Clone for PersonaProxy
source§fn clone(&self) -> PersonaProxy
fn clone(&self) -> PersonaProxy
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 PersonaProxy
impl Debug for PersonaProxy
source§impl PersonaProxyInterface for PersonaProxy
impl PersonaProxyInterface for PersonaProxy
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
type GetLifetimeResponseFut = QueryResponseFut<Lifetime>
fn get_lifetime(&self) -> Self::GetLifetimeResponseFut
source§impl Proxy for PersonaProxy
impl Proxy for PersonaProxy
§type Protocol = PersonaMarker
type Protocol = PersonaMarker
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