Рет қаралды 1,458
Rust's async story is a great success, but has not yet been told to the end. So far we are not yet able to use async functions in traits, but this will change soon: „async functions in traits“ is a major upcoming feature which has already arrived in nightly Rust. In this talk we show how we used it to create EventSourced, a framework for event sourced entities in Rust. We give an overview of EventSourced and dive into how „async functions in traits“ is used to build the relevant abstractions, e.g. an event log. Using only a few slides but a lot of live coding, we cover the benefits and show the problems we encountered.