pub enum AuthListenerRequest {
OnInitialize {
auth_state: AuthState,
responder: AuthListenerOnInitializeResponder,
},
OnAuthStateChanged {
auth_state: AuthState,
responder: AuthListenerOnAuthStateChangedResponder,
},
}
Expand description
A protocol to receive events when the authentication state of an account changes.
AuthListeners may be registered through the AuthTarget
protocol and this
registration also defines the types of authentication state changes that
should be sent to the listener.
All methods include an empty response to follow the “Throttle push using acknowledgements” FIDL design pattern.
Variants§
OnInitialize
A method that is called when the AccountListener is first connected.
OnAuthStateChanged
A method that is called when the authentication state of the account changes.
Implementations§
source§impl AuthListenerRequest
impl AuthListenerRequest
pub fn into_on_initialize( self ) -> Option<(AuthState, AuthListenerOnInitializeResponder)>
pub fn into_on_auth_state_changed( self ) -> Option<(AuthState, AuthListenerOnAuthStateChangedResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL