#[non_exhaustive]
pub enum ConvertFromError {
MissingTimeRange,
MissingPluginContext,
InvalidJson {
err: Error,
json: String,
},
InvalidFrame {
source: Error,
},
InvalidRequest {
source: Error,
},
UnknownRole(String),
InvalidPath {
source: ChannelError,
},
}
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)
The role string provided by Grafana didn’t match the roles known by the SDK.
InvalidPath
Fields
source: ChannelError
The underlying reason for the error.
The path provided by Grafana was invalid.
Trait Implementations
sourceimpl Debug for ConvertFromError
impl Debug for ConvertFromError
sourceimpl Display for ConvertFromError
impl Display for ConvertFromError
sourceimpl Error for ConvertFromError
impl Error for ConvertFromError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ConvertFromError> for Error
impl From<ConvertFromError> for Error
sourcefn from(source: ConvertFromError) -> Self
fn from(source: ConvertFromError) -> Self
Performs the conversion.
sourceimpl From<ConvertFromError> for Status
impl From<ConvertFromError> for Status
sourcefn from(other: ConvertFromError) -> Self
fn from(other: ConvertFromError) -> Self
Performs the conversion.
sourceimpl From<Error> for ConvertFromError
impl From<Error> for ConvertFromError
sourcefn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more