gpio_utils/
error.rs

1// Copyright (c) 2018, The gpio-utils Authors.
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/license/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option.  This file may not be copied, modified, or distributed
7// except according to those terms.
8
9use nix::Error as NixError;
10use std::io::Error as IoError;
11use sysfs_gpio::Error as GpioError;
12
13error_chain! {
14    types {
15        Error, ErrorKind, ResultExt, Result;
16    }
17
18    foreign_links {
19        Gpio(GpioError);
20        Nix(NixError);
21        Io(IoError);
22    }
23}