Enum rustdds::dds::error::Error [−][src]
This roughly corresponds to "Return codes" in DDS spec 2.2.1.1 Format and Conventions
Deviations from the DDS spec:
OK
is not included. It is not an error. Ok/Error should be distinguished with theResult
type.Error
is too unspecific.AlreadyDeleted
We should use Rust type system to avoid these, so no need for run-time error.Timeout
This is normal operation and should be encoded asOption
orResult
NoData
This should be encoded asOption<SomeData>
, not an error code.
Variants
Illegal parameter value.
Fields of BadParameter
reason: String
Unsupported operation. Can only be returned by operations that are optional.
Service ran out of the resources needed to complete the operation.
Operation invoked on an Entity that is not yet enabled.
Application attempted to modify an immutable QosPolicy.
Application specified a set of policies that are not consistent with each other.
Fields of InconsistentPolicy
reason: String
A pre-condition for the operation was not met.
Fields of PreconditionNotMet
precondition: String
An operation was invoked on an inappropriate object or at an inappropriate time (as determined by policies set by the specification or the Service implementation). There is no precondition that could be changed to make the operation succeed.
Fields of IllegalOperation
reason: String
Synchronization with another thread failed because the other thread has exited while holding a lock. Does not exist in the DDS spec.
Something that should not go wrong went wrong anyway. This is usually a bug in RustDDS
Fields of Internal
reason: String
Fields of Io
inner: Error
Fields of Serialization
reason: String
Fields of Discovery
reason: String
Implementations
impl Error
[src]
pub fn bad_parameter<T>(reason: &str) -> Result<T>
[src]
pub fn precondition_not_met<T>(precondition: &str) -> Result<T>
[src]
Trait Implementations
impl Debug for Error
[src]
impl From<Error> for Error
[src]
impl<T> From<PoisonError<T>> for Error
[src]
fn from(_e: PoisonError<T>) -> Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Unpin for Error
[src]
impl !UnwindSafe for Error
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,