Skip to main content

HddsError

Enum HddsError 

Source
#[repr(C)]
pub enum HddsError {
Show 22 variants HddsOk = 0, HddsInvalidArgument = 1, HddsNotFound = 2, HddsOperationFailed = 3, HddsOutOfMemory = 4, HddsConfigError = 10, HddsInvalidDomainId = 11, HddsInvalidParticipantId = 12, HddsNoAvailableParticipantId = 13, HddsInvalidState = 14, HddsIoError = 20, HddsTransportError = 21, HddsRegistrationFailed = 22, HddsWouldBlock = 23, HddsTypeMismatch = 30, HddsSerializationError = 31, HddsBufferTooSmall = 32, HddsEndianMismatch = 33, HddsQosIncompatible = 40, HddsUnsupported = 41, HddsPermissionDenied = 50, HddsAuthenticationFailed = 51,
}
Expand description

Error codes (C-compatible enum)

§Error Code Categories

  • 0-9: Success and generic errors
  • 10-19: Configuration errors
  • 20-29: I/O and transport errors
  • 30-39: Type and serialization errors
  • 40-49: QoS and resource errors
  • 50-59: Security errors

Variants§

§

HddsOk = 0

Operation completed successfully

§

HddsInvalidArgument = 1

Invalid argument provided (null pointer, invalid value)

§

HddsNotFound = 2

Requested resource not found

§

HddsOperationFailed = 3

Generic operation failure

§

HddsOutOfMemory = 4

Memory allocation failed

§

HddsConfigError = 10

Invalid configuration settings

§

HddsInvalidDomainId = 11

Invalid domain ID (must be 0-232)

§

HddsInvalidParticipantId = 12

Invalid participant ID (must be 0-119)

§

HddsNoAvailableParticipantId = 13

No available participant ID (all 120 ports occupied)

§

HddsInvalidState = 14

Invalid entity state for requested operation

§

HddsIoError = 20

Generic I/O error

§

HddsTransportError = 21

UDP transport send/receive failed

§

HddsRegistrationFailed = 22

Topic registration failed

§

HddsWouldBlock = 23

Operation would block but non-blocking mode requested

§

HddsTypeMismatch = 30

Type mismatch between writer and reader

§

HddsSerializationError = 31

CDR serialization failed

§

HddsBufferTooSmall = 32

Buffer too small for encoding

§

HddsEndianMismatch = 33

CDR endianness mismatch

§

HddsQosIncompatible = 40

QoS policies are incompatible between endpoints

§

HddsUnsupported = 41

Requested feature or operation is not supported

§

HddsPermissionDenied = 50

Permission denied by access control (DDS Security)

§

HddsAuthenticationFailed = 51

Authentication failed

Trait Implementations§

Source§

impl Clone for HddsError

Source§

fn clone(&self) -> HddsError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HddsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for HddsError

Source§

fn eq(&self, other: &HddsError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for HddsError

Source§

impl Eq for HddsError

Source§

impl StructuralPartialEq for HddsError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.