pub enum GeneratorError {
InvalidGeneratorArguments {
args: Vec<String>,
description: String,
},
RequiredConfigNotFound {
function_name: String,
field_name: String,
description: Option<String>,
},
OtherError {
description: String,
},
}
Variants
InvalidGeneratorArguments
RequiredConfigNotFound
OtherError
Fields
description: String
Implementations
sourceimpl GeneratorError
impl GeneratorError
pub fn new_from<E: Error>(err: E) -> GeneratorError
Trait Implementations
sourceimpl Debug for GeneratorError
impl Debug for GeneratorError
sourceimpl Display for GeneratorError
impl Display for GeneratorError
sourceimpl Error for GeneratorError
impl Error for GeneratorError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<GeneratorError> for GeneratorError
impl PartialEq<GeneratorError> for GeneratorError
sourcefn eq(&self, other: &GeneratorError) -> bool
fn eq(&self, other: &GeneratorError) -> bool
impl Eq for GeneratorError
impl StructuralEq for GeneratorError
impl StructuralPartialEq for GeneratorError
Auto Trait Implementations
impl RefUnwindSafe for GeneratorError
impl Send for GeneratorError
impl Sync for GeneratorError
impl Unpin for GeneratorError
impl UnwindSafe for GeneratorError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more