Enum comms_service::CommsServiceError
source · [−]pub enum CommsServiceError {
ConfigError(String),
MutexPoisoned,
HeaderParsing,
InvalidChecksum,
ParameterLengthMismatch,
NoAvailablePorts,
NoReadData,
ParsingError(String),
GenericError(String),
UnknownPayloadType(u16),
}
Expand description
This enum defines all errors that can occur within the comms-service
.
Variants
ConfigError(String)
A component of the service’s configuration was incorrect
MutexPoisoned
The mutex guarding the telemetry cache has been poisoned.
HeaderParsing
A UDP header was unable to be correctly parsed.
InvalidChecksum
The checksum of a UDP packet does not match the one found in the header.
ParameterLengthMismatch
The number of write
methods and the number of downlink ports are not the same.
NoAvailablePorts
All of the ports allocated for handling packets are binded and unable to be used.
NoReadData
No data available for reading
ParsingError(String)
An error was encountered when parsing a packet
GenericError(String)
Generic error encountered
UnknownPayloadType(u16)
Unknown payload type encountered
Trait Implementations
sourceimpl Debug for CommsServiceError
impl Debug for CommsServiceError
sourceimpl Display for CommsServiceError
impl Display for CommsServiceError
sourceimpl Fail for CommsServiceError
impl Fail for CommsServiceError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
sourceimpl PartialEq<CommsServiceError> for CommsServiceError
impl PartialEq<CommsServiceError> for CommsServiceError
sourcefn eq(&self, other: &CommsServiceError) -> bool
fn eq(&self, other: &CommsServiceError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommsServiceError) -> bool
fn ne(&self, other: &CommsServiceError) -> bool
This method tests for !=
.
impl Eq for CommsServiceError
impl StructuralEq for CommsServiceError
impl StructuralPartialEq for CommsServiceError
Auto Trait Implementations
impl RefUnwindSafe for CommsServiceError
impl Send for CommsServiceError
impl Sync for CommsServiceError
impl Unpin for CommsServiceError
impl UnwindSafe for CommsServiceError
Blanket Implementations
impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.