AbortCode

Enum AbortCode 

Source
#[repr(u32)]
pub enum AbortCode {
Show 29 variants ToggleNotAlternated = 84_082_688, SdoTimeout = 84_148_224, InvalidCommandSpecifier = 84_148_225, InvalidBlockSize = 84_148_226, InvalidSequenceNumber = 84_148_227, CrcError = 84_148_228, OutOfMemory = 84_148_229, UnsupportedAccess = 100_728_832, WriteOnly = 100_728_833, ReadOnly = 100_728_834, NoSuchObject = 100_794_368, UnnallowedPdo = 100_925_505, PdoTooLong = 100_925_506, IncompatibleParameter = 100_925_507, HardwareError = 101_056_512, DataTypeMismatch = 101_122_064, DataTypeMismatchLengthHigh = 101_122_066, DataTypeMismatchLengthLow = 101_122_067, NoSuchSubIndex = 101_253_137, InvalidValue = 101_253_168, ValueTooHigh = 101_253_169, ValueTooLow = 101_253_170, ResourceNotAvailable = 101_318_691, GeneralError = 134_217_728, CantStore = 134_217_760, CantStoreLocalControl = 134_217_761, CantStoreDeviceState = 134_217_762, NoObjectDict = 134_217_763, NoData = 134_217_764,
}
Expand description

SDO Abort Code

Defines the various reasons an SDO transfer can be aborted

Variants§

§

ToggleNotAlternated = 84_082_688

Toggle bit not alternated

§

SdoTimeout = 84_148_224

SDO protocol timed out

§

InvalidCommandSpecifier = 84_148_225

Client/server command specifier not valid or unknown

§

InvalidBlockSize = 84_148_226

Invalid block size (block mode only)

§

InvalidSequenceNumber = 84_148_227

Invalid sequence number (block mode only)

§

CrcError = 84_148_228

CRC Error (block mode only )

§

OutOfMemory = 84_148_229

Out of memory

§

UnsupportedAccess = 100_728_832

Unsupported access to an object

§

WriteOnly = 100_728_833

Attempt to read a write only object

§

ReadOnly = 100_728_834

Attempt to write a read only object

§

NoSuchObject = 100_794_368

Object does not exist in the dictionary

§

UnnallowedPdo = 100_925_505

Object cannot be mapped to the PDO

§

PdoTooLong = 100_925_506

The number and length of objects would exceed PDO length

§

IncompatibleParameter = 100_925_507

General parameter incompatibility

§

HardwareError = 101_056_512

Access failed due to hardware error

§

DataTypeMismatch = 101_122_064

Data type does not match, length of service parameter does not match

§

DataTypeMismatchLengthHigh = 101_122_066

Data type does not match, length of service parameter too high

§

DataTypeMismatchLengthLow = 101_122_067

Data type does not match, length of service parameter too low

§

NoSuchSubIndex = 101_253_137

Sub-index does not exist

§

InvalidValue = 101_253_168

Invalid value for parameter (download only)

§

ValueTooHigh = 101_253_169

Value of parameter too high (download only)

§

ValueTooLow = 101_253_170

Value of parameter too low (download only)

§

ResourceNotAvailable = 101_318_691

Resource isn’t available

§

GeneralError = 134_217_728

General error

§

CantStore = 134_217_760

Data cannot be transferred or stored to the application

§

CantStoreLocalControl = 134_217_761

Data cannot be transferred or stored to the application because of local control

§

CantStoreDeviceState = 134_217_762

Data cannot be transferred or stored to the application because of the device state

§

NoObjectDict = 134_217_763

No object dictionary is present

§

NoData = 134_217_764

No data available

Trait Implementations§

Source§

impl Clone for AbortCode

Source§

fn clone(&self) -> AbortCode

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 AbortCode

Source§

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

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

impl From<AbortCode> for u32

Source§

fn from(v: AbortCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for AbortCode

Source§

fn eq(&self, other: &AbortCode) -> 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 TryFrom<u32> for AbortCode

Source§

type Error = u32

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

fn try_from(v: u32) -> Result<Self, u32>

Performs the conversion.
Source§

impl Copy for AbortCode

Source§

impl StructuralPartialEq for AbortCode

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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