Error Handling in Rust - Patterns, Practices, and Libraries - RustConf 2020
Offered By: Rust via YouTube
Course Description
Overview
Explore error handling in Rust through this comprehensive conference talk that delves into its diverse and evolving nature. Learn about the meaning of error handling in Rust, existing patterns, when to apply them, and available libraries to assist with the task. Gain insights into topics such as panic, the Error trait, error return traces, and tips for reporters. Discover libraries like thiserror and SNAFU for defining errors, and explore concepts like API stability, stack size, and gathering context with tracing-error and extracter. Understand matching and reacting with anyhow/eyre, and differentiate between library and application error handling approaches. Enhance your Rust programming skills with this informative talk aimed at both new and experienced Rustaceans.
Syllabus
Intro
Awesome Rust Mentors
Why Error Handling?
What Is Error Handling?
Panic
Definitions
The Error Trait - An Error
The Error Trait - A Reporter
Error Return Traces
TIPS - Reporters
Libraries
Defining - thiserror
Defining - SNAFU
API Stability
Stack Size
Gathering Context-tracing-error
Gathering Context - extracter
Matching and Reacting -anyhow/eyre
Reporting
Library vs Application
Taught by
Rust
Related Courses
Computer Vision: The FundamentalsUniversity of California, Berkeley via Coursera Programming Languages
University of Virginia via Udacity Learn to Program: Crafting Quality Code
University of Toronto via Coursera Computational Photography
Georgia Institute of Technology via Coursera Algorithms: Design and Analysis, Part 2
Stanford University via Coursera