Michael J Ward

Results 10 comments of Michael J Ward

It appears like tower has inspired an imitator. https://github.com/cloudwego/motore I'm sharing here because they might have an interesting design option that I haven't seen considered here. ```rust pub trait Service...

`tokio-tower` provides a multiplex client: https://github.com/tower-rs/tokio-tower/

Here's a workaround to capture unknown enum variants without needing `serde(with)` annotations ```rust use std::str::FromStr; use serde::Deserialize; use serde::de::{value, Deserializer, IntoDeserializer}; #[derive(Deserialize, Debug)] #[serde(rename_all = "kebab-case")] #[serde(remote = "MaybeUnknown")] enum...

I'm sharing this because I believe that it's a step towards @BurntSushi 's proposed solution (just needs mapping from `DebugItem -> Iterator`, but is also useful for those that want...

Does https://github.com/hyperium/hyper-util/pull/3 complete this?

> Those should likely be removed, to start with. We can add them back in a way that hyper_util::server::AutoConnection could handle either version. (That's part of the goal of https://github.com/hyperium/hyper/issues/2852,...

This was one of my personal learning outcomes from going through the [nix-pills](https://github.com/NixOS/nix-pills) tutorial. Would it be better to update that tutorial under new nix conventions - `nix flakes` and...

Yes - I think that clarifies the suggestions. 1) `Option` becomes default optional. 2) `Option` specific setter attributes only get applied to `Option` fields, removing the need for explicit negation...

The alternative to using `Arc` is to use an [actor pattern](https://ryhl.io/blog/actors-with-tokio/), where you spawn a task that takes full ownership of the resource (websocket connection) and communicate with that resource...