Skip to main content

PytorchQueryError

Enum PytorchQueryError 

Source
pub enum PytorchQueryError {
Show 26 variants UnknownType { token: String, }, EmptyTypeSelection, MultiRankRequiresScope, LimitTooSmall, MutuallyExclusiveNameFilters, InvalidNameGlob { pattern: String, source: Error, }, InvalidNameRegex { pattern: String, source: Error, }, MissingTimeBound, InvalidFrom { value: String, source: TimeParseError, }, InvalidTo { value: String, source: TimeParseError, }, EmptyTimeWindow { start: i64, end: i64, }, IntervalTooSmall, UnknownStatsGroupBy { axis: String, }, LocalFilterParentRequired { axis: &'static str, value: i64, parents: &'static str, suggestion: &'static str, }, StatsGroupByParentRequired { axis: &'static str, parents: &'static str, group_by: &'static str, }, PythonStackMissing { axis: String, }, UnknownSlicesGroupBy { axis: String, }, SqlOpen { source: Error, }, Sql { area: &'static str, phase: SqlPhase, label: String, source: Error, }, SearchCountOverflow { source: TryFromIntError, }, StatsCountOverflow { source: TryFromIntError, }, TimelineCountOverflow { source: TryFromIntError, }, SlicesCountOverflow { source: TryFromIntError, }, CollectivesCountOverflow { source: TryFromIntError, }, InspectJsonDecode { field: String, source: Error, }, InspectTraceIndexOverflow { source: TryFromIntError, },
}

Variants§

§

UnknownType

Fields

§token: String
§

EmptyTypeSelection

§

MultiRankRequiresScope

§

LimitTooSmall

§

MutuallyExclusiveNameFilters

§

InvalidNameGlob

Fields

§pattern: String
§source: Error
§

InvalidNameRegex

Fields

§pattern: String
§source: Error
§

MissingTimeBound

§

InvalidFrom

Fields

§value: String
§

InvalidTo

Fields

§value: String
§

EmptyTimeWindow

Fields

§start: i64
§end: i64
§

IntervalTooSmall

§

UnknownStatsGroupBy

Fields

§axis: String
§

LocalFilterParentRequired

Fields

§axis: &'static str
§value: i64
§parents: &'static str
§suggestion: &'static str
§

StatsGroupByParentRequired

Fields

§axis: &'static str
§parents: &'static str
§group_by: &'static str
§

PythonStackMissing

Fields

§axis: String
§

UnknownSlicesGroupBy

Fields

§axis: String
§

SqlOpen

Fields

§source: Error
§

Sql

Fields

§area: &'static str
§phase: SqlPhase
§label: String
§source: Error
§

SearchCountOverflow

Fields

§

StatsCountOverflow

Fields

§

TimelineCountOverflow

Fields

§

SlicesCountOverflow

Fields

§

CollectivesCountOverflow

Fields

§

InspectJsonDecode

Fields

§field: String
§source: Error
§

InspectTraceIndexOverflow

Fields

Implementations§

Source§

impl PytorchQueryError

Source

pub fn unknown_type(token: &str) -> Self

Source

pub fn invalid_name_glob(pattern: &str, source: Error) -> Self

Source

pub fn invalid_name_regex(pattern: &str, source: Error) -> Self

Source

pub fn invalid_from(value: &str, source: TimeParseError) -> Self

Source

pub fn invalid_to(value: &str, source: TimeParseError) -> Self

Source

pub fn unknown_stats_group_by(axis: &str) -> Self

Source

pub fn python_stack_missing(axis: &str) -> Self

Source

pub fn unknown_slices_group_by(axis: &str) -> Self

Source

pub fn sql_parts(&self) -> Option<(&'static str, SqlPhase, &str)>

Trait Implementations§

Source§

impl Debug for PytorchQueryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for PytorchQueryError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for PytorchQueryError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl VeloqDiagnostic for PytorchQueryError

Source§

fn code(&self) -> ErrorCode

Source§

fn hint(&self) -> Option<Cow<'_, str>>

Source§

fn message(&self) -> Cow<'_, str>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.