Rust IO and Error Handling workshop

Details
https://secure.meetupstatic.com/photos/event/2/1/8/e/600_464528590.jpeg
Note: This meetup is in logical continuation of the Rust IO (Sep 16) meetup.
Rust IO and Error Handling workshop
Error Handling
Rust’s commitment to reliability extends to error handling. This is seen in great detail in situations that involve IO.
Rust groups errors into two major categories: recoverable and unrecoverable errors. Rust doesn’t have exceptions. Instead, it has
- value Result for recoverable errors
- panic! macro that stops execution when it encounters unrecoverable errors.
we discuss the pathology of the code structured as shown below
--
pub fn get_id(&mut self) -> Result {
let update_result = self.update();
match update_result {
Ok(_) => Ok(self.construct_id()),
Err(err) => Err(err),
} }
we discuss the code and the issues discussed in the thread.
https://news.ycombinator.com/item?id=7792438
Rust IO
we cover the spill over items from the Sep 16, Rust IO meetup, especially stuff related to
. Tokio
. metal IO
we also do a deep dive, with more complicated examples.
we will also discuss many of the issues in the github tracker.
Pre-Requisite
Please install Rust and get a fully charged laptop for the meetup. This makes it easy to try out stuff and learn.
This is a "FOSS" free of charge workshop.

Rust IO and Error Handling workshop