[][src]Crate libmctp

libMCTP is a MCTP (Management Component Transport Protocol) implementation for Rust.

libMCTP aims to implement the MCTP protocol as described in the DMTF DSP2016 specification.

MCTP allows multiple transport layers, the protocols supported by this library include:

libMCTP does not send or receive any data. Instead it generates [u8] arrays that contain all of the bytes that should be sent. It also decodes [u8] arrays. This allows you to use your own SMBus/I2C implementation.

Developers wanting to use this as a library should focus on the relevant transport layer context. For example, for SMBus support use the MCTPSMBusContext struct in the smbus module.

Modules

base_packet

This defines the MCTP base protocol common fields.

control_packet

This describes the MCTP Control Message headers and protocols.

errors

The public error types used by libMCTP

smbus

The SMBus specific protocol implementation.

smbus_proto

The implementation for the SMBus protocol

smbus_request

The SMBus specific CMTP request protocol implementation.

smbus_response

The SMBus specific CMTP response protocol implementation.

Structs

MCTPSMBusContext

The global context for MCTP SMBus operations

Enums

ControlMessageError

The possible Control Message errors

DecodeError

The possible errors when decoding a packet

MessageType

The Message Type of the MCTP packet