<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tower - 标签 - Victor's Code Journey</title><link>http://www.victorchu.info/tags/tower/</link><description>Tower - 标签 - Victor's Code Journey</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>victorchu0610@outlook.com (victorchutian)</managingEditor><webMaster>victorchu0610@outlook.com (victorchutian)</webMaster><lastBuildDate>Wed, 30 Apr 2025 15:36:05 +0800</lastBuildDate><atom:link href="http://www.victorchu.info/tags/tower/" rel="self" type="application/rss+xml"/><item><title>发明服务特征</title><link>http://www.victorchu.info/posts/2025/04/ac6fa74c/</link><pubDate>Wed, 30 Apr 2025 15:36:05 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2025/04/ac6fa74c/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/rust.webp" referrerpolicy="no-referrer">
            </div><p><a href="https://github.com/tower-rs/tower" target="_blank" rel="noopener noreferrer">Tower</a>是一个模块化和可重用组件库，用于构建健壮的网络客户端和服务器。其核心是<a href="https://docs.rs/tower/latest/tower/trait.Service.html" target="_blank" rel="noopener noreferrer">Service</a>特征。Service是一个异步函数，它接受请求并产生响应。然而，其设计的某些方面可能并不明显。与其解释目前Tower中存在的Service特征，让我们通过想象如果你从头开始，你会如何发明它来看看Service背后的动机。</p>]]></description></item></channel></rss>