Skip to content

Expose cause of initialization errorsΒ #6

@ramosbugs

Description

@ramosbugs

Is your feature request related to a problem? Please describe.

The Client provides an initialized_async method to wait until it has completed initialization. The function returns false if an error occurs, but there doesn't seem to be a way to access the error for logging purposes. This could make it a challenge to debug initialization issues.

Describe the solution you'd like

A more idiomatic interface in Rust would be to have initialized_async return something like Result<(), InitError> and define an InitError type to describe the different failure conditions that might arise.

Describe alternatives you've considered

A separate method could be used to retrieve the error (e.g., returning Option<InitError>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions