[][src]Struct libmctp::smbus_proto::SMBusRoutingInformationUpdateEntry

pub struct SMBusRoutingInformationUpdateEntry<T>(pub T);

The MCTP SMBus/I2C Routing Information Update Entry Format

Implementations

impl<T: AsMut<[u8]> + AsRef<[u8]>> SMBusRoutingInformationUpdateEntry<T>[src]

pub fn entry_type(&self) -> u8[src]

Entry Type

pub fn set_entry_type(&mut self, value: u8)[src]

Entry Type

pub fn eid_range_size(&self) -> u8[src]

Size of EID Range. The count of EIDs in the range.

pub fn set_eid_range_size(&mut self, value: u8)[src]

Size of EID Range. The count of EIDs in the range.

pub fn first_eid(&self) -> u8[src]

First EID in EID Range

pub fn set_first_eid(&mut self, value: u8)[src]

First EID in EID Range

pub fn physical_address(&self) -> u8[src]

Physical address

pub fn set_physical_address(&mut self, value: u8)[src]

Physical address

impl SMBusRoutingInformationUpdateEntry<[u8; 4]>[src]

pub fn new(
    entry_type: RoutingInformationUpdateEntryType,
    range_size: u8,
    first_eid: u8,
    physical_address: u8
) -> Self
[src]

Create a new SMBusRoutingInformationUpdateEntry.

pub fn new_from_buf(buf: [u8; 4]) -> Self[src]

Create a new SMBusRoutingInformationUpdateEntry from an existing buffer.

buffer: The existing buffer for the SMBusRoutingInformationUpdateEntry No checks are performed on the buffer.

Trait Implementations

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<i128> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<i16> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<i32> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<i64> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<i8> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<u128> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<u16> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<u32> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<u64> for SMBusRoutingInformationUpdateEntry<T>[src]

impl<T: AsMut<[u8]> + AsRef<[u8]>> BitRange<u8> for SMBusRoutingInformationUpdateEntry<T>[src]

Auto Trait Implementations

impl<T> Send for SMBusRoutingInformationUpdateEntry<T> where
    T: Send

impl<T> Sync for SMBusRoutingInformationUpdateEntry<T> where
    T: Sync

impl<T> Unpin for SMBusRoutingInformationUpdateEntry<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Bit for T where
    T: BitRange<u8>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.