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
Software as a ServiceUniversity of California, Berkeley via Coursera Software Testing
University of Utah via Udacity The Hardware/Software Interface
University of Washington via Coursera Software Debugging
Saarland University via Udacity Introduction to Systematic Program Design - Part 1
The University of British Columbia via Coursera