Unnamed repository; edit this file 'description' to name the repository.
add proc-macro-client error variant
bit-aloo 3 months ago
parent 4d9ce88 · commit c2150f4
-rw-r--r--crates/proc-macro-srv/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/proc-macro-srv/src/lib.rs b/crates/proc-macro-srv/src/lib.rs
index e04f744ae2..a6090253d3 100644
--- a/crates/proc-macro-srv/src/lib.rs
+++ b/crates/proc-macro-srv/src/lib.rs
@@ -96,6 +96,14 @@ impl<'env> ProcMacroSrv<'env> {
}
}
+#[derive(Debug)]
+pub enum ProcMacroClientError {
+ Cancelled { reason: String },
+ Io(std::io::Error),
+ Protocol(String),
+ Eof,
+}
+
pub type ProcMacroClientHandle<'a> = &'a mut (dyn ProcMacroClientInterface + Sync + Send);
pub trait ProcMacroClientInterface {