Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Error Handling in Rust - Patterns, Practices, and Libraries - RustConf 2020

Rust via YouTube

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

Reviews

Start your review of Error Handling in Rust - Patterns, Practices, and Libraries - RustConf 2020

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.