#[non_exhaustive]pub enum CodegenError {
Protoc(String),
DescriptorIo(Error),
DescriptorDecode(String),
Buffa(String),
OptionDecode {
path: String,
detail: String,
},
OutputIo(Error),
}Expand description
Errors returned by the option scanner.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Protoc(String)
The protoc invocation failed.
DescriptorIo(Error)
The descriptor set could not be read.
DescriptorDecode(String)
The descriptor set could not be decoded.
Buffa(String)
The buffa-build invocation failed.
OptionDecode
The custom option bytes could not be decoded.
OutputIo(Error)
IO error while writing generated files.
Trait Implementations§
Source§impl Debug for CodegenError
impl Debug for CodegenError
Source§impl Display for CodegenError
impl Display for CodegenError
Source§impl Error for CodegenError
impl Error for CodegenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CodegenError
impl !RefUnwindSafe for CodegenError
impl Send for CodegenError
impl Sync for CodegenError
impl Unpin for CodegenError
impl UnsafeUnpin for CodegenError
impl !UnwindSafe for CodegenError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more