autocommit 2022-03-23 18:38:46 CET
This commit is contained in:
parent
786fb44d92
commit
b3a27f889a
15 changed files with 0 additions and 0 deletions
|
|
@ -1,31 +0,0 @@
|
|||
use crate::async_engine::AsyncError;
|
||||
pub use buf_in::BufFdIn;
|
||||
pub use buf_out::{BufFdOut, OutBufferSwapchain};
|
||||
pub use formatter::MsgFormatter;
|
||||
pub use parser::{MsgParser, MsgParserError};
|
||||
use thiserror::Error;
|
||||
|
||||
mod buf_in;
|
||||
mod buf_out;
|
||||
mod formatter;
|
||||
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),
|
||||
#[error("The peer did not send a file descriptor")]
|
||||
NoFd,
|
||||
#[error("The peer sent too many file descriptors")]
|
||||
TooManyFds,
|
||||
#[error("The peer closed the connection")]
|
||||
Closed,
|
||||
#[error("The connection timed out")]
|
||||
Timeout,
|
||||
}
|
||||
|
||||
const BUF_SIZE: usize = 4096;
|
||||
const CMSG_BUF_SIZE: usize = 4096;
|
||||
const MAX_IN_FD: usize = 32;
|
||||
Loading…
Add table
Add a link
Reference in a new issue