Intro to Tower and the Service Trait - Stefan Baumgartner - Rust Linz, July 2022

preview_player
Показать описание
Tower is a library from the Tokio ecosystem, featuring reusable components and abstractions for building networking clients and servers. We look at some of its use-cases, learn how to read and write Service trait implementations, and discuss some of its downsides.

About Stefan
Stefan Baumgartner is a developer from Austria and co-organizer of the Rust Linz Meetup. He writes regularly for the "Ferris Talk" column at Heise and publishes technical guides and books for various publishers.

Resources:

Рекомендации по теме
Комментарии
Автор

I found this intro extremely helpfull, especially the part around 6:35. However I have one question: Wouldn't it make more sense to put the trait bounds of the Logger Service implementation directly on the Logger struct (or at least the Logger impl block)? After all, an e.g. Logger<int> implementation doesn't really make sense, does it? Or is that just not possible with (current) rust?

marti-nito