kona_common/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
//! Errors for the `kona-common` crate.

/// An error that can occur when reading from or writing to a file descriptor.
#[derive(derive_more::Display, Debug, PartialEq, Eq)]
#[display("IO error (errno: {_0})")]
pub struct IOError(pub i32);

impl core::error::Error for IOError {}

/// A [Result] type for the [IOError].
pub type IOResult<T> = Result<T, IOError>;