Enum CompletionCode

Source
pub enum CompletionCode {
    Success = 0,
    Error = 1,
    ErrorInvalidData = 2,
    ErrorInvalidLength = 3,
    ErrorNotReady = 4,
    ErrorUnsupportedCmd = 5,
}
Expand description

This field is only present in Response messages. This field contains a value that indicates whether the response completed normally. If the command did not complete normally, the value can provide additional information regarding the error condition. The values for completion codes are specified in Table 13.

Variants§

§

Success = 0

The Request was accepted and completed normally

§

Error = 1

This is a generic failure message. (It should not be used when a more specific result code applies.)

§

ErrorInvalidData = 2

The packet payload contained invalid data or an illegal parameter value.

§

ErrorInvalidLength = 3

The message length was invalid. (The Message body was larger or smaller than expected for the particular request.)

§

ErrorNotReady = 4

The Receiver is in a transient state where it is not ready to receive the corresponding message

§

ErrorUnsupportedCmd = 5

The command field in the control type of the received message is unspecified or not supported on this endpoint. This completion code shall be returned for any unsupported command values received in MCTP control Request messages.

Trait Implementations§

Source§

impl Debug for CompletionCode

Source§

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

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

impl From<u8> for CompletionCode

Source§

fn from(num: u8) -> CompletionCode

Converts to this type from the input type.
Source§

impl PartialEq for CompletionCode

Source§

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

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