#[non_exhaustive]pub enum GraphEngineError {
ScopeNotEnforceable {
reason: String,
},
Unsupported {
what: &'static str,
},
Unavailable {
reason: String,
},
Deadline,
Cancelled,
Internal(String),
}Expand description
Engine-side failure vocabulary.
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.
ScopeNotEnforceable
The engine cannot enforce a property of this scope. The port serves the request on the fallback hop and logs the reason — a typed error, never a best-effort weaker predicate.
Unsupported
Deadline
Cancelled
Internal(String)
Trait Implementations§
Source§impl Debug for GraphEngineError
impl Debug for GraphEngineError
Source§impl Display for GraphEngineError
impl Display for GraphEngineError
Source§impl Error for GraphEngineError
impl Error for GraphEngineError
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 GraphEngineError
impl RefUnwindSafe for GraphEngineError
impl Send for GraphEngineError
impl Sync for GraphEngineError
impl Unpin for GraphEngineError
impl UnsafeUnpin for GraphEngineError
impl UnwindSafe for GraphEngineError
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