pub struct AuthListenerProxy { /* private fields */ }
Implementations§
source§impl AuthListenerProxy
impl AuthListenerProxy
sourcepub fn take_event_stream(&self) -> AuthListenerEventStream
pub fn take_event_stream(&self) -> AuthListenerEventStream
Get a Stream of events from the remote end of the AuthListener protocol
Panics
Panics if the event stream was already taken.
sourcepub fn on_initialize(&self, auth_state: AuthState) -> QueryResponseFut<()>
pub fn on_initialize(&self, auth_state: AuthState) -> QueryResponseFut<()>
A method that is called when the AccountListener is first connected.
sourcepub fn on_auth_state_changed(
&self,
auth_state: AuthState
) -> QueryResponseFut<()>
pub fn on_auth_state_changed( &self, auth_state: AuthState ) -> QueryResponseFut<()>
A method that is called when the authentication state of the account changes.
Trait Implementations§
source§impl AuthListenerProxyInterface for AuthListenerProxy
impl AuthListenerProxyInterface for AuthListenerProxy
type OnInitializeResponseFut = QueryResponseFut<()>
fn on_initialize(&self, auth_state: AuthState) -> Self::OnInitializeResponseFut
type OnAuthStateChangedResponseFut = QueryResponseFut<()>
fn on_auth_state_changed( &self, auth_state: AuthState ) -> Self::OnAuthStateChangedResponseFut
source§impl Clone for AuthListenerProxy
impl Clone for AuthListenerProxy
source§fn clone(&self) -> AuthListenerProxy
fn clone(&self) -> AuthListenerProxy
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 AuthListenerProxy
impl Debug for AuthListenerProxy
source§impl Proxy for AuthListenerProxy
impl Proxy for AuthListenerProxy
§type Protocol = AuthListenerMarker
type Protocol = AuthListenerMarker
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