pub enum ExecutionOutcome {
Success,
SyntaxError,
SemanticError,
TypeError,
GraphError,
UnboundVariable,
MissingParameter,
Cancelled,
Timeout,
ResourceLimit,
}Expand description
Coarse, stable outcome category for telemetry. Error messages and query text are deliberately excluded to avoid leaking user data through an observer by default.
Variants§
Success
SyntaxError
The query text itself never parsed — see QueryError::Syntax.
SemanticError
The query parsed but is structurally invalid, independent of any
data/parameters — see QueryError::Semantic.
TypeError
A real value (from stored data or a $parameter) turned out to be
the wrong shape for what the query does with it — see
QueryError::Type.
GraphError
UnboundVariable
MissingParameter
Cancelled
Timeout
ResourceLimit
Implementations§
Source§impl ExecutionOutcome
impl ExecutionOutcome
pub fn from_error(error: &QueryError) -> Self
Trait Implementations§
Source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
Source§fn clone(&self) -> ExecutionOutcome
fn clone(&self) -> ExecutionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExecutionOutcome
Source§impl Debug for ExecutionOutcome
impl Debug for ExecutionOutcome
impl Eq for ExecutionOutcome
Source§impl PartialEq for ExecutionOutcome
impl PartialEq for ExecutionOutcome
impl StructuralPartialEq for ExecutionOutcome
Auto Trait Implementations§
impl Freeze for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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