Skip to content

Use async-trait instead of pinning and boxing services #47

@Kitt3120

Description

@Kitt3120

In a lot of places, PinnedBoxedFuture has been used. This is a workaround to Rust not allowing futures (and thus trait objects implementing async methods) to be object-safe. This trait is worth looking into to improve the current solution.

https://crates.io/crates/async-trait

Metadata

Metadata

Assignees

Labels

refactorOptimizes or restructures code

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions