Skip to content
TILens What matters today in tech v0.3.2
Theme

Topic - Edition

Rust

8 items on 26 Sep 2026
Rust

Stream::unfold vs direct channel filtering

I have a struct where, you can call a function to get a sender or receiver channel, and a spawn function, the spawn spawns a proxy so you when you ask for the receiver it will give you an unbounded receiver, only by…

Source: Rust Users Forum SpiderUnderUrBed
Rust

How ownership is transferring in same vars?

let s = String::from("hello"); let tuple = (s, s.len()); // i am confused how ownership is moving b/w same vars i.e from first s to tuple s if all s are same ,how it's working??? 3 posts - 3 participants Read full topic

Source: Rust Users Forum shree_om
Rust

Awaiting async code in Drop

I currently have this struct in my code: /// auto flushes on drop struct Flusher<'a, W: AsyncWriteExt + Unpin>(&'a mut W); which I want to use to automatically flush my async file stream instead of manually calling…

Source: Rust Users Forum cheese_space