Enum CommandCode

Source
pub enum CommandCode {
Show 22 variants Reserved = 0, SetEndpointID = 1, GetEndpointID = 2, GetEndpointUUID = 3, GetMCTPVersionSupport = 4, GetMessageTypeSupport = 5, GetVendorDefinedMessageSupport = 6, ResolveEndpointID = 7, AllocateEndpointIDs = 8, RoutingInformationUpdate = 9, GetRoutingTableEntries = 10, PrepareForEndpointDiscovery = 11, EndpointDiscovery = 12, DiscoveryNotify = 13, GetNetworkID = 14, QueryHop = 15, ResolveUUID = 16, QueryRateLimit = 17, RequestTXRateLimit = 18, UpdateRateLimit = 19, QuerySupportedInterfaces = 20, Unknown = 255,
}
Expand description

A list of supported Command Codes

Variants§

§

Reserved = 0

Reserved

§

SetEndpointID = 1

Assigns an EID to the endpoint at the given physical address.

§

GetEndpointID = 2

Returns the EID presently assigned to an endpoint.

§

GetEndpointUUID = 3

Retrieves a per-device unique UUID associated with the endpoint.

§

GetMCTPVersionSupport = 4

Lists which versions of the MCTP control protocol are supported on an endpoint.

§

GetMessageTypeSupport = 5

Lists the message types that an endpoint supports.

§

GetVendorDefinedMessageSupport = 6

Used to discover an MCTP endpoint’s vendor-specific MCTP extensions and capabilities.

§

ResolveEndpointID = 7

Used to get the physical address associated with a given EID.

§

AllocateEndpointIDs = 8

Used by the bus owner to allocate a pool of EIDs to an MCTP bridge

§

RoutingInformationUpdate = 9

Used by the bus owner to extend or update the routing information that is maintained by an MCTP bridge

§

GetRoutingTableEntries = 10

Used to request an MCTP bridge to return data corresponding to its present routing table entries

§

PrepareForEndpointDiscovery = 11

Used to direct endpoints to clear their “discovered”flags to enable them to respond to the Endpoint Discovery command

§

EndpointDiscovery = 12

Used to discover MCTP-capable devices on a bus, provided that another discovery mechanism is not defined for the particular physical medium

§

DiscoveryNotify = 13

Used to notify the bus owner that an MCTP device has become available on the bus

§

GetNetworkID = 14

Used to get the MCTP networkID

§

QueryHop = 15

Used to discover what bridges, if any, are in the path to a given target endpoint and what transmission unit sizes the bridges will pass for a given message type when routing to the target endpoint

§

ResolveUUID = 16

Used by endpoints to find another endpoint matching an endpoint that uses a specific UUID

§

QueryRateLimit = 17

Used to discover the data rate limit settings of the given target for incoming messages

§

RequestTXRateLimit = 18

Used to request the allowed transmit data rate limit for the given endpoint for outgoing messages

§

UpdateRateLimit = 19

Used to update the receiving side on change to the transmit data rate which was not requested by the receiver

§

QuerySupportedInterfaces = 20

Used to discover the existing device MCTP interfaces

§

Unknown = 255

Not supported

Trait Implementations§

Source§

impl Clone for CommandCode

Source§

fn clone(&self) -> CommandCode

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 CommandCode

Source§

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

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

impl From<u8> for CommandCode

Source§

fn from(num: u8) -> CommandCode

Converts to this type from the input type.
Source§

impl PartialEq for CommandCode

Source§

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

Source§

impl Eq for CommandCode

Source§

impl StructuralPartialEq for CommandCode

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