Enum clyde_3g_eps_service::models::last_error::Error
source · [−]pub enum Error {
None,
BadCRC,
UnknownCommand,
CommandDataIncorrect,
ChannelDoesNotExist,
ChannelInactive,
ResetOccurred,
BadADCAcquisition,
FailReadingEEPROM,
InternalSPIError,
CommandError,
UnknownError,
}
Expand description
Error variants which can be returned by the EPS
Variants
None
No errors were encountered
BadCRC
CRC does not match data
UnknownCommand
Unknown command received
CommandDataIncorrect
Supplied data incorrect when processing command
ChannelDoesNotExist
Selected channel does not exist
ChannelInactive
Selected channel is currently inactive
ResetOccurred
A reset had to occur
BadADCAcquisition
There was an error with teh ADC acquisition
FailReadingEEPROM
Reading from EEPROM generated an error
InternalSPIError
Generic warning about an error on the internal SPI bus
CommandError
The command to fetch the last error failed
UnknownError
Catch all for future error values
Trait Implementations
sourceimpl<__S: ScalarValue> FromInputValue<__S> for Error
impl<__S: ScalarValue> FromInputValue<__S> for Error
sourcefn from_input_value(v: &InputValue<__S>) -> Option<Error> where
for<'__b> &'__b __S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<__S>) -> Option<Error> where
for<'__b> &'__b __S: ScalarRefValue<'__b>,
Performs the conversion.
sourceimpl<__S> GraphQLType<__S> for Error where
__S: ScalarValue,
for<'__b> &'__b __S: ScalarRefValue<'__b>,
impl<__S> GraphQLType<__S> for Error where
__S: ScalarValue,
for<'__b> &'__b __S: ScalarRefValue<'__b>,
sourcefn meta<'r>(_: &(), registry: &mut Registry<'r, __S>) -> MetaType<'r, __S> where
__S: 'r,
fn meta<'r>(_: &(), registry: &mut Registry<'r, __S>) -> MetaType<'r, __S> where
__S: 'r,
The meta type representing this GraphQL type.
sourcefn resolve(
&self,
_: &(),
_: Option<&[Selection<'_, __S>]>,
_: &Executor<'_, Self::Context, __S>
) -> Value<__S>
fn resolve(
&self,
_: &(),
_: Option<&[Selection<'_, __S>]>,
_: &Executor<'_, Self::Context, __S>
) -> Value<__S>
Resolve the provided selection set against the current object. Read more
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<'_, S>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<'_, S>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
Resolve the value of a single field on this type. Read more
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
Resolve this interface or union into a concrete type Read more
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
Return the concrete type name for this instance/union. Read more
sourceimpl<__S: ScalarValue> ToInputValue<__S> for Error
impl<__S: ScalarValue> ToInputValue<__S> for Error
sourcefn to_input_value(&self) -> InputValue<__S>
fn to_input_value(&self) -> InputValue<__S>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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