pub enum OpError {
WrongOp {
expected_domain: &'static str,
expected_op: &'static str,
got_domain: String,
got_op: String,
},
MissingAttribute {
op: &'static str,
attr: &'static str,
},
WrongAttributeType {
op: &'static str,
attr: String,
expected: &'static str,
},
DuplicateAttribute {
op: &'static str,
attr: String,
},
UnknownAttribute {
op: &'static str,
attr: String,
},
WrongInputCount {
op: &'static str,
expected: String,
got: usize,
},
WrongOutputCount {
op: &'static str,
expected: String,
got: usize,
},
InvalidValue {
op: &'static str,
attr: String,
detail: String,
},
}Variants§
WrongOp
MissingAttribute
WrongAttributeType
DuplicateAttribute
UnknownAttribute
WrongInputCount
WrongOutputCount
InvalidValue
Trait Implementations§
Source§impl Error for OpError
impl Error for OpError
1.30.0 · 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()
impl StructuralPartialEq for OpError
Auto Trait Implementations§
impl Freeze for OpError
impl RefUnwindSafe for OpError
impl Send for OpError
impl Sync for OpError
impl Unpin for OpError
impl UnsafeUnpin for OpError
impl UnwindSafe for OpError
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