pub async fn handle_request(&self, req: AccountManagerRequest) -> Result<(), fidl::Error> {
        match req {
            AccountManagerRequest::GetAccountIds { responder } => {
                responder.send(&mut await!(self.get_account_ids()).iter_mut())
            }
            AccountManagerRequest::GetAccountAuthStates { responder } => {
                let mut response = await!(self.get_account_auth_states());
                responder.send(response.0, &mut response.1.iter_mut())
            }
            AccountManagerRequest::GetAccount { id, auth_context_provider, account, responder } => {
                responder.send(await!(self.get_account(id.into(), auth_context_provider, account)))
            }
            AccountManagerRequest::RegisterAccountListener { listener, options, responder } => {
                responder.send(await!(self.register_account_listener(listener, options)))
            }
            AccountManagerRequest::RemoveAccount { id, responder } => {
                responder.send(await!(self.remove_account(id.into())))
            }
            AccountManagerRequest::ProvisionFromAuthProvider {
                auth_context_provider,
                auth_provider_type,
                responder,
            } => {
                let mut response =
                    await!(self
                        .provision_from_auth_provider(auth_context_provider, auth_provider_type));
                responder.send(response.0, response.1.as_mut().map(OutOfLine))
            }
            AccountManagerRequest::ProvisionNewAccount { responder } => {
                let mut response = await!(self.provision_new_account());
                responder.send(response.0, response.1.as_mut().map(OutOfLine))
            }
        }
    }
/// Handles a single request to the AccountManager.
Handles a single request to the AccountManager.
Handles a single request to the AccountManager .
pub async fn handle_request(&self, req: AccountManagerRequest) -> Result<(), fidl::Error> {
        match req {
            AccountManagerRequest::GetAccountIds { responder } => {
                responder.send(&mut await!(self.get_account_ids()).iter_mut())
            }
            AccountManagerRequest::GetAccountAuthStates { responder } => {
                let mut response = await!(self.get_account_auth_states());
                responder.send(response.0, &mut response.1.iter_mut())
            }
            AccountManagerRequest::GetAccount { id, auth_context_provider, account, responder } => {
                responder.send(await!(self.get_account(id.into(), auth_context_provider, account)))
            }
            AccountManagerRequest::RegisterAccountListener { listener, options, responder } => {
                responder.send(await!(self.register_account_listener(listener, options)))
            }
            AccountManagerRequest::RemoveAccount { id, responder } => {
                responder.send(await!(self.remove_account(id.into())))
            }
            AccountManagerRequest::ProvisionFromAuthProvider {
                auth_context_provider,
                auth_provider_type,
                responder,
            } => {
                let mut response =
                    await!(self
                        .provision_from_auth_provider(auth_context_provider, auth_provider_type));
                responder.send(response.0, response.1.as_mut().map(OutOfLine))
            }
            AccountManagerRequest::ProvisionNewAccount { responder } => {
                let mut response = await!(self.provision_new_account());
                responder.send(response.0, response.1.as_mut().map(OutOfLine))
            }
        }
    }
pub async fn handle_request ( & self , req : AccountManagerRequest ) -> Result < ( ) , fidl :: Error > { match req { AccountManagerRequest :: GetAccountIds { responder } => { responder . send ( & mut await ! ( self get_account_ids ( ) ) . iter_mut ( ) ) } AccountManagerRequest :: GetAccountAuthStates { responder } => { let mut response = await ! ( self get_account_auth_states ( ) ) ; responder . send ( response . 0 , & mut response . 1 . iter_mut ( ) ) } AccountManagerRequest :: GetAccount { id , auth_context_provider , account , responder } => { responder . send ( await ! ( self get_account ( id into ( ) auth_context_provider account ) ) ) } AccountManagerRequest :: RegisterAccountListener { listener , options , responder } => { responder . send ( await ! ( self register_account_listener ( listener options ) ) ) } AccountManagerRequest :: RemoveAccount { id , responder } => { responder . send ( await ! ( self remove_account ( id into ( ) ) ) ) } AccountManagerRequest :: ProvisionFromAuthProvider { auth_context_provider , auth_provider_type , responder , } => { let mut response = await ! ( self provision_from_auth_provider ( auth_context_provider auth_provider_type ) ) ; responder . send ( response . 0 , response . 1 . as_mut ( ) . map ( OutOfLine ) ) } AccountManagerRequest :: ProvisionNewAccount { responder } => { let mut response = await ! ( self provision_new_account ( ) ) ; responder . send ( response . 0 , response . 1 . as_mut ( ) . map ( OutOfLine ) ) } } }
Handles a single request to the AccountManager.
Handles a single request to the AccountManager .
&self
req
AccountManagerRequest
&self
req
AccountManagerRequest