/// Handles a single Account FIDL request.
Handles a single Account FIDL request.
Handles a single Account FIDL request .
async fn handle_request(&self, request: AccountRequest) -> Result<(), Error> {
        match request {
            AccountRequest::Lock { responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending Lock response")?;
            }
            AccountRequest::GetDataDirectory { data_directory: _, responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending GetDataDirectory response")?;
            }
            AccountRequest::GetAuthState { scenario: _, responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending GetAuthState response")?;
            }
            AccountRequest::GetLifetime { responder } => {
                responder.send(Lifetime::Persistent).context("sending GetLifetime response")?;
            }
            AccountRequest::GetDefaultPersona { persona: _, responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending GetDefaultPersona response")?;
            }
            AccountRequest::GetPersona { id: _, persona: _, responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending GetPersona response")?;
            }
            AccountRequest::GetPersonaIds { responder } => {
                responder.send(&[]).context("sending GetPersonaIds response")?;
            }
            AccountRequest::RegisterAuthListener {
                scenario: _,
                listener: _,
                initial_state: _,
                granularity: _,
                responder,
            } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending RegisterAuthListener response")?;
            }
            AccountRequest::GetAuthMechanismEnrollments { responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending GetAuthMechanismEnrollments response")?;
            }
            AccountRequest::CreateAuthMechanismEnrollment { auth_mechanism_id: _, responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending CreateAuthMechanismEnrollment response")?;
            }
            AccountRequest::RemoveAuthMechanismEnrollment { enrollment_id: _, responder } => {
                responder
                    .send(&mut Err(faccount::Error::UnsupportedOperation))
                    .context("sending RemoveAuthMechanismEnrollment response")?;
            }
        }
        Ok(())
    }
async fn handle_request ( & self , request : AccountRequest ) -> Result < ( ) , Error > { match request { AccountRequest :: Lock { responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: GetDataDirectory { data_directory : _ , responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: GetAuthState { scenario : _ , responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: GetLifetime { responder } => { responder . send ( Lifetime :: Persistent ) . context ( " " ) ? ; } AccountRequest :: GetDefaultPersona { persona : _ , responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: GetPersona { id : _ , persona : _ , responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: GetPersonaIds { responder } => { responder . send ( & [ ] ) . context ( " " ) ? ; } AccountRequest :: RegisterAuthListener { scenario : _ , listener : _ , initial_state : _ , granularity : _ , responder , } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: GetAuthMechanismEnrollments { responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: CreateAuthMechanismEnrollment { auth_mechanism_id : _ , responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } AccountRequest :: RemoveAuthMechanismEnrollment { enrollment_id : _ , responder } => { responder . send ( & mut Err ( faccount :: Error :: UnsupportedOperation ) ) . context ( " " ) ? ; } } Ok ( ( ) ) }
Handles a single Account FIDL request.
Handles a single Account FIDL request .
&self
request
AccountRequest