Skip to main content

7 docs tagged with "rust"

View all tags

Arc<Mutex<T>>

The idiomatic pattern for shared mutable state in Rust — atomic reference counting with mutual exclusion.

Async/Await

How Rust's async/await compiles to state machines, and what this means for performance and correctness.

Borrowing & References

Shared (&T) and exclusive (&mut T) borrows — the rules that prevent data races at compile time.

Error Handling

Idiomatic Rust error handling — Result<T,E>, the ? operator, thiserror, anyhow.

Lifetimes

Lifetime annotations — ensuring references don't outlive the data they point to.

Ownership Model

Rust's three ownership rules: one owner, no aliases, drop on scope exit.

Tokio Runtime

How Tokio's multi-threaded work-stealing runtime schedules async tasks across OS threads.