Enum glimesh::GlimeshError
source · pub enum GlimeshError {
GraphqlErrors(Vec<Error>),
NoData,
}
Expand description
Errors that can occur when interacting with the Glimesh API.
Variants§
GraphqlErrors(Vec<Error>)
A list of errors returned by graphql. This is guaranteed to always have at least one error.
NoData
The graphql response contained no errors, but null data. Its likely this will never really happen if the API is behaving.
Trait Implementations§
source§impl Debug for GlimeshError
impl Debug for GlimeshError
source§impl Display for GlimeshError
impl Display for GlimeshError
source§impl Error for GlimeshError
impl Error for GlimeshError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<GlimeshError> for HttpConnectionError
impl From<GlimeshError> for HttpConnectionError
source§fn from(source: GlimeshError) -> Self
fn from(source: GlimeshError) -> Self
Converts to this type from the input type.
source§impl From<GlimeshError> for WebsocketConnectionError
impl From<GlimeshError> for WebsocketConnectionError
source§fn from(source: GlimeshError) -> Self
fn from(source: GlimeshError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for GlimeshError
impl Send for GlimeshError
impl Sync for GlimeshError
impl Unpin for GlimeshError
impl UnwindSafe for GlimeshError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.