add proc-macro-client error variant

This commit is contained in:
bit-aloo 2026-01-06 09:33:07 +05:30
parent fb2cb46ea8
commit d2ac252cf2
No known key found for this signature in database

View file

@ -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 {