A to Z
Glossary
Every concept in this sheet, plus the smaller terms it uses. Select a concept to open its card.
A
- async/await on Tokio
- An async function returns a future, which does nothing until it is awaited.
- Axum routers, extractors and IntoResponse
- An Axum handler is an async function whose arguments are extractors:
Path,Query,JsonandStatepull typed values out of the request.
C
- Cargo, crates and features
- Cargo builds, tests and runs Rust code.
G
- Git commits and branches
- Git records snapshots of your project as commits.
O
- Ownership and borrowing
- Every value has one owner and is dropped when the owner goes out of scope.
P
- Pull requests
- A pull request proposes merging a branch into main and shows the diff, CI results and review comments in one place.
R
- Result, Option and the ? operator
- A function that can fail returns
Result<T, E>, and a value that may be missing is anOption<T>.
S
- Shared state: Arc, Mutex, Send and Sync
Arc<T>shares one value between tasks by counting references, andMutex<T>orRwLock<T>lets them change it one at a time.- SQLx: checked queries and a pool
- SQLx runs plain SQL asynchronously.
- Structs, enums and pattern matching
- Structs group named fields.
T
- Terminal essentials
- A shell runs commands such as
cd,ls,cat,grepandcurl, and pipes (|) feed one command's output into the next. - Traits and generics
- A trait lists methods a type promises to have, implemented with
impl Trait for Type.