Enum grafana_plugin_sdk::backend::ConvertFromError [−][src]
#[non_exhaustive]
pub enum ConvertFromError {
MissingTimeRange,
MissingPluginContext,
InvalidJson {
err: Error,
json: String,
},
InvalidFrame {
source: Error,
},
InvalidRequest {
source: Error,
},
UnknownRole(String),
}
Expand description
Errors occurring when trying to interpret data passed from Grafana to this SDK.
Generally any errors should be considered a bug and should be reported.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
MissingTimeRange
The time_range
was missing from the query.
MissingPluginContext
The plugin_context
was missing from the request.
InvalidJson
Fields
err: Error
The underlying JSON error.
json: String
The JSON for which deserialization was attempted.
The JSON provided by Grafana was invalid.
InvalidFrame
Fields
source: Error
The underlying JSON error.
The frame provided by Grafana was malformed.
InvalidRequest
Fields
source: Error
The underlying http
error.
The resource request was not a valid HTTP request.
UnknownRole(String)
Tuple Fields
0: String
The role string provided by Grafana didn’t match the roles known by the SDK.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ConvertFromError
impl Send for ConvertFromError
impl Sync for ConvertFromError
impl Unpin for ConvertFromError
impl !UnwindSafe for ConvertFromError
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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