pub enum IdlSearchError {
NotFound {
input: String,
section: String,
suggestions: Vec<Suggestion>,
available: Vec<String>,
},
ParseError {
path: String,
source: String,
},
InvalidPath {
path: String,
},
}Expand description
Structured error type for IDL lookup operations.
Named IdlSearchError to avoid conflict with types::IdlError
which represents error definitions within an IDL spec.
Variants§
Trait Implementations§
Source§impl Clone for IdlSearchError
impl Clone for IdlSearchError
Source§fn clone(&self) -> IdlSearchError
fn clone(&self) -> IdlSearchError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdlSearchError
impl Debug for IdlSearchError
Source§impl Display for IdlSearchError
impl Display for IdlSearchError
Source§impl Error for IdlSearchError
impl Error for IdlSearchError
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()
Auto Trait Implementations§
impl Freeze for IdlSearchError
impl RefUnwindSafe for IdlSearchError
impl Send for IdlSearchError
impl Sync for IdlSearchError
impl Unpin for IdlSearchError
impl UnsafeUnpin for IdlSearchError
impl UnwindSafe for IdlSearchError
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