pub struct AuthListenerSynchronousProxy { /* private fields */ }
Implementations§
source§impl AuthListenerSynchronousProxy
impl AuthListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<AuthListenerEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<AuthListenerEvent, 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 on_initialize(
&self,
auth_state: AuthState,
___deadline: Time
) -> Result<(), Error>
pub fn on_initialize( &self, auth_state: AuthState, ___deadline: Time ) -> Result<(), Error>
A method that is called when the AccountListener is first connected.
sourcepub fn on_auth_state_changed(
&self,
auth_state: AuthState,
___deadline: Time
) -> Result<(), Error>
pub fn on_auth_state_changed( &self, auth_state: AuthState, ___deadline: Time ) -> Result<(), Error>
A method that is called when the authentication state of the account changes.