pub enum CommsServiceError {
ConfigError(String),
MutexPoisoned,
HeaderParsing,
InvalidChecksum,
ParameterLengthMismatch,
NoAvailablePorts,
NoReadData,
ParsingError(String),
GenericError(String),
UnknownPayloadType(u16),
}
This enum defines all errors that can occur within the comms-service
.
A component of the service's configuration was incorrect
The mutex guarding the telemetry cache has been poisoned.
A UDP header was unable to be correctly parsed.
The checksum of a UDP packet does not match the one found in the header.
The number of write
methods and the number of downlink ports are not the same.
All of the ports allocated for handling packets are binded and unable to be used.
No data available for reading
An error was encountered when parsing a packet
Generic error encountered
Unknown payload type encountered
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn compat(self) -> Compat<Self> | |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
impl<T> AsFail for T where T: Fail, | |
fn as_fail(&self) -> &(dyn Fail + 'static) | |
Converts a reference to Self
into a dynamic trait object of Fail
.
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn compat(self) -> Compat<Self> | |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more