Enum PduError

Source
#[repr(C)]
pub enum PduError {
Show 45 variants StatusNoError = 0, FctFailed = 1, Reserved1 = 16, CommPcToVciFailed = 17, PduApiNotConstructed = 32, SharingViolation = 33, ResourceBusy = 48, ResourceTableChanged = 49, ResourceError = 50, CllNotConnected = 64, CllNotStarted = 65, InvalidParameters = 80, InvalidHandle = 96, ValueNotSupported = 97, IdNotSupported = 98, ComParamNotSupported = 99, ComParamLocked = 100, TxQueueFull = 112, EventQueueEmpty = 113, VoltageNotSupported = 128, MuxRscNotSupported = 129, CableUnknown = 130, NoCableDetected = 131, CllConnected = 132, TempParamNotAllowed = 144, RscLocked = 160, RscLockedByAnotherCll = 161, RscNotLocked = 162, ModuleNotConnected = 163, ApiSwOutOfDate = 164, ModuleFwOutOfDate = 165, PinNotConnected = 166, IpProtocolNotSupported = 176, DoIPRoutingActivationFailed = 177, DoIPRoutingActivationAuthFailed = 178, DoIPAmbiguousLogicalAddress = 179, DoIPRoutineActivationInvalidSrcAddress = 180, DoIPRoutingActivationNoDataSocketAvailable = 181, DoIPRoutineActivationSourceAddressChanged = 182, DoIPRoutingActivationSourceAddressInUse = 183, DoIPRoutineActivationConfirmationRejected = 184, DoIPRoutineActivationTypeUnsupported = 185, DoIPRoutineActivationResponseCodeUnknown = 186, DoIPRoutingActivationResponseTimeout = 187, DoIPResponseTimeout = 188,
}
Expand description

Function return values

Variants§

§

StatusNoError = 0

No Error (Function call OK)

§

FctFailed = 1

Function call failed (Generic failure)

§

Reserved1 = 16

Reserved for ISO 22900-2

§

CommPcToVciFailed = 17

Communication failed between host and MVCI

§

PduApiNotConstructed = 32

PDU API has not yet been constructed

§

SharingViolation = 33

PDU Destruct was not called before another PDU Construct

§

ResourceBusy = 48

Resource is already in use

§

ResourceTableChanged = 49

Resource table changed

§

ResourceError = 50

Generic resource error

§

CllNotConnected = 64

ComLogicalLink cannot be offline and perform the requested action

§

CllNotStarted = 65

ComLogicalLink must be started to perform the requested action

§

InvalidParameters = 80

A parameter parsed into the function was invalid

§

InvalidHandle = 96

A handle provided was invalid

§

ValueNotSupported = 97

Option value was unsupported

§

IdNotSupported = 98

IOCTL Command ID was unsupported

§

ComParamNotSupported = 99

Communication parameter was unsupported

§

ComParamLocked = 100

Physical communication parameter cannot be changed as it is locked by another LogicalLink

§

TxQueueFull = 112

Transmit queue is full

§

EventQueueEmpty = 113

No more events are available to read

§

VoltageNotSupported = 128

IOCTL - Voltage value supplied is unsupported by the MVCI module

§

MuxRscNotSupported = 129

IOCTL - Pin or resource is not supported by the MVCI module

§

CableUnknown = 130

Cable attached to MVCI module is unknown

§

NoCableDetected = 131

No cable attached to the MVCI module

§

CllConnected = 132

ComLogicalLink is already connected

§

TempParamNotAllowed = 144

Physical Com parameters cannot be changes as a temporary one

§

RscLocked = 160

Resource is already locked

§

RscLockedByAnotherCll = 161

Resource is already locked by another ComLogicalLink

§

RscNotLocked = 162

Resource is already unlocked

§

ModuleNotConnected = 163

Module is not connected or ready

§

ApiSwOutOfDate = 164

API software is out of date

§

ModuleFwOutOfDate = 165

VCI firmware is out of date

§

PinNotConnected = 166

Requested pin is not routed by the MVCI’s cable

§

IpProtocolNotSupported = 176

IP protocol not supported

§

DoIPRoutingActivationFailed = 177

DoIP Routing activation failed (Generic failure)

§

DoIPRoutingActivationAuthFailed = 178

DoIP Routing activation failed - missing / wrong authentication

§

DoIPAmbiguousLogicalAddress = 179

DoIP Logical address is defined multiple times so it is ambiguous

§

DoIPRoutineActivationInvalidSrcAddress = 180

DoIP Routing activation failed - Unknown or invalid source address

§

DoIPRoutingActivationNoDataSocketAvailable = 181

DoIP Routing activation failed - No more free sockets available

§

DoIPRoutineActivationSourceAddressChanged = 182

DoIP Routing activation failed - The source address changed

§

DoIPRoutingActivationSourceAddressInUse = 183

DoIP Routing activation failed - Source address already in use

§

DoIPRoutineActivationConfirmationRejected = 184

DoIP Routing activation failed - Rejected confirmation

§

DoIPRoutineActivationTypeUnsupported = 185

DoIP Routing activation failed - Requested activation type was unsupported

§

DoIPRoutineActivationResponseCodeUnknown = 186

DoIP Routing activation failed - Response code was unknown

§

DoIPRoutingActivationResponseTimeout = 187

DoIP Routing activation failed - Timeout waiting for activation response

§

DoIPResponseTimeout = 188

DoIP general timeout

Trait Implementations§

Source§

impl Clone for PduError

Source§

fn clone(&self) -> PduError

Returns a copy 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 PduError

Source§

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

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

impl Ord for PduError

Source§

fn cmp(&self, other: &PduError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for PduError

Source§

fn eq(&self, other: &PduError) -> 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 PartialOrd for PduError

Source§

fn partial_cmp(&self, other: &PduError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for PduError

Source§

impl Eq for PduError

Source§

impl StructuralPartialEq for PduError

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<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> 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.