mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-04 05:31:32 +00:00
feat(xencall): improve asynchronous support (#430)
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
use std::io;
|
||||
|
||||
use tokio::task::JoinError;
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("version of xen is not supported")]
|
||||
@ -16,6 +18,8 @@ pub enum Error {
|
||||
MmapBatchFailed(nix::errno::Errno),
|
||||
#[error("specified value is too long")]
|
||||
ValueTooLong,
|
||||
#[error("failed to join async task: {0}")]
|
||||
JoinError(JoinError),
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
Reference in New Issue
Block a user