io-uring: add readable/writable
This commit is contained in:
parent
25d817b722
commit
dcdd91c0b0
31 changed files with 285 additions and 189 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue