feat(xenstore): multi-watch and maybe-commit support (#429)

This commit is contained in:
Alex Zenla
2024-12-14 17:57:15 -05:00
committed by GitHub
parent a04a812f28
commit d7affe6c8c
5 changed files with 62 additions and 7 deletions

View File

@ -48,6 +48,13 @@ impl Error {
_ => false,
}
}
pub fn is_again_response(&self) -> bool {
match self {
Error::ResponseError(message) => message == "EAGAIN",
_ => false,
}
}
}
pub type Result<T> = std::result::Result<T, Error>;