Enum grafana_plugin_sdk::data::Error[][src]

pub enum Error {
    ArrowSerialization(Error),
    DataTypeMismatch {
        existing: DataType,
        new: DataType,
        field: String,
    },
    FieldLengthMismatch {
        lengths: Vec<(String, usize)>,
    },
    UnsupportedArrowDataType(DataType),
}
Expand description

Errors that can occur when interacting with the Grafana plugin SDK.

Variants

ArrowSerialization(Error)

Tuple Fields

0: Error

An error has occurred when serializing to Arrow IPC format.

DataTypeMismatch

Fields

existing: DataType

The existing datatype of the field.

new: DataType

The datatype of the new data.

field: String

The name of the field.

There is a datatype mismatch in a field.

This can happen when calling Field::set_values with an array whose datatype does not match the existing array.

FieldLengthMismatch

Fields

lengths: Vec<(String, usize)>

The names and lengths of the fields in the Frame.

Occurs when a frame had mismatched field lengths while checking.

UnsupportedArrowDataType(DataType)

Tuple Fields

A field was created using an Arrow array with a datatype unsupported by Grafana.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more