pub struct SMBusRoutingInformationUpdateEntry<T>(pub T);
Expand description
The MCTP SMBus/I2C Routing Information Update Entry Format
Tuple Fields§
§0: T
Implementations§
Source§impl<T: AsMut<[u8]> + AsRef<[u8]>> SMBusRoutingInformationUpdateEntry<T>
impl<T: AsMut<[u8]> + AsRef<[u8]>> SMBusRoutingInformationUpdateEntry<T>
Sourcepub fn entry_type(&self) -> u8
pub fn entry_type(&self) -> u8
Entry Type
Sourcepub fn set_entry_type(&mut self, value: u8)
pub fn set_entry_type(&mut self, value: u8)
Entry Type
Sourcepub fn eid_range_size(&self) -> u8
pub fn eid_range_size(&self) -> u8
Size of EID Range. The count of EIDs in the range.
Sourcepub fn set_eid_range_size(&mut self, value: u8)
pub fn set_eid_range_size(&mut self, value: u8)
Size of EID Range. The count of EIDs in the range.
Sourcepub fn set_first_eid(&mut self, value: u8)
pub fn set_first_eid(&mut self, value: u8)
First EID in EID Range
Sourcepub fn physical_address(&self) -> u8
pub fn physical_address(&self) -> u8
Physical address
Sourcepub fn set_physical_address(&mut self, value: u8)
pub fn set_physical_address(&mut self, value: u8)
Physical address
Source§impl SMBusRoutingInformationUpdateEntry<[u8; 4]>
impl SMBusRoutingInformationUpdateEntry<[u8; 4]>
Sourcepub fn new(
entry_type: RoutingInformationUpdateEntryType,
range_size: u8,
first_eid: u8,
physical_address: u8,
) -> Self
pub fn new( entry_type: RoutingInformationUpdateEntryType, range_size: u8, first_eid: u8, physical_address: u8, ) -> Self
Create a new SMBusRoutingInformationUpdateEntry.
Sourcepub fn new_from_buf(buf: [u8; 4]) -> Self
pub fn new_from_buf(buf: [u8; 4]) -> Self
Create a new SMBusRoutingInformationUpdateEntry
from an existing buffer.
buffer
: The existing buffer for the SMBusRoutingInformationUpdateEntry
No checks are performed on the buffer
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SMBusRoutingInformationUpdateEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for SMBusRoutingInformationUpdateEntry<T>where
T: RefUnwindSafe,
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,
impl<T> UnwindSafe for SMBusRoutingInformationUpdateEntry<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more