October 2019
Intermediate to advanced
444 pages
10h 37m
English
Let's pull in some external crates to handle errors better in just a few steps:
[dependencies]quick-error = "1.2"
#[macro_use] extern crate quick_error;use std::convert::From;use std::io;
quick_error! { #[derive(Debug)] pub enum ErrorWrapper { InvalidDeviceIdError(device_id: usize) { from(device_id: usize) -> (device_id) description("No device present with this ...Read now
Unlock full access