File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,17 @@ pub struct LinuxI2CBus {
36
36
/// Linux I2C errors
37
37
#[ derive( Debug ) ]
38
38
pub enum LinuxI2CError {
39
- /// Errno from a failing libc call. Sourced from `nix`.
39
+ /// Errno from a failing ` libc` call. Sourced from [ `nix`] .
40
40
///
41
- /// To interpret this value `nix::Error::from_i32` should be used.
41
+ /// To interpret this value [`nix::errno::from_i32`] should be used.
42
+ ///
43
+ /// The [`Error`] implementation will return nor return a source
44
+ /// for this variant. And similar will the [`Error`]
45
+ /// implementation of `nix`'s error.
46
+ ///
47
+ /// [`nix`]: https://docs.rs/nix/latest/nix/
48
+ /// [`nix::errno::from_i32`]: https://docs.rs/nix/latest/nix/errno/fn.from_i32.html
49
+ /// [`Error`]: https://doc.rust-lang.org/std/error/trait.Error.html
42
50
Errno ( i32 ) ,
43
51
/// Input/output error
44
52
Io ( io:: Error ) ,
You can’t perform that action at this time.
0 commit comments