1
0
Fork 0
forked from wry/wry

io-uring: add readable/writable

This commit is contained in:
Julian Orth 2022-05-12 20:33:58 +02:00
parent 25d817b722
commit dcdd91c0b0
31 changed files with 285 additions and 189 deletions

View file

@ -1,4 +1,7 @@
use {crate::async_engine::AsyncError, thiserror::Error};
use {
crate::{io_uring::IoUringError, utils::oserror::OsError},
thiserror::Error,
};
pub use {
buf_in::BufFdIn,
buf_out::{BufFdOut, OutBuffer, OutBufferSwapchain},
@ -14,9 +17,9 @@ mod parser;
#[derive(Debug, Error)]
pub enum BufFdError {
#[error("An IO error occurred")]
Io(#[source] crate::utils::oserror::OsError),
#[error("An async error occurred")]
Async(#[from] AsyncError),
Io(#[source] OsError),
#[error("An io-uring error occurred")]
Ring(#[from] IoUringError),
#[error("The peer did not send a file descriptor")]
NoFd,
#[error("The peer sent too many file descriptors")]