#[non_exhaustive]pub enum DimasError {
Show 20 variants
ShouldNotHappen,
Put,
Delete,
Get,
Encoding,
ConvertingValue,
Decoding,
NoMessage,
ReadProperties,
WriteProperties,
ExecuteCallback,
OperationState(String),
FileNotFound(String),
ModifyContext(String),
ManageState,
ReadContext(String),
CreateSession(Box<dyn Error + Send + Sync + 'static>),
ActivateLiveliness(Box<dyn Error + Send + Sync + 'static>),
DeclarePublisher(Box<dyn Error + Send + Sync + 'static>),
StdError(Box<dyn Error + Send + Sync + 'static>),
}Expand description
DiMAS Error type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ShouldNotHappen
this error should never happen
Put
The put of a Publisher failed
Delete
The delete of a Publisher failed
Get
The get of a Query failed
Encoding
Encoding of message failed
ConvertingValue
Converting of message failed
Decoding
Decoding of message failed
NoMessage
Decoding of message failed
ReadProperties
Read access to properties failed
WriteProperties
Write access to properties failed
ExecuteCallback
Lock on callback failed
OperationState(String)
Invalid OperationState
FileNotFound(String)
File not found
ModifyContext(String)
Modifying context failed
ManageState
The set_state failed
ReadContext(String)
Reading context failed
CreateSession(Box<dyn Error + Send + Sync + 'static>)
zenoh session creation failed
ActivateLiveliness(Box<dyn Error + Send + Sync + 'static>)
zenoh activate sending liveliness failed
DeclarePublisher(Box<dyn Error + Send + Sync + 'static>)
zenoh publisher declaration failed
StdError(Box<dyn Error + Send + Sync + 'static>)
auto conversion for boxed core::error::Error
Trait Implementations§
source§impl Debug for DimasError
impl Debug for DimasError
source§impl Display for DimasError
impl Display for DimasError
source§impl Error for DimasError
impl Error for DimasError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for DimasError
impl !RefUnwindSafe for DimasError
impl Send for DimasError
impl Sync for DimasError
impl Unpin for DimasError
impl !UnwindSafe for DimasError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more