add proc-macro-client error variant
This commit is contained in:
parent
fb2cb46ea8
commit
d2ac252cf2
1 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue