[−][src]Struct dmidecode::RawStructure
The raw SMBIOS structure information for structures that are not handled by this crate, such as Oem structures.
Fields
version: SmbiosVersion
info: InfoType
handle: u16
data: &'buffer [u8]
Methods
impl<'buffer> RawStructure<'buffer>
[src]
pub fn find_string(
&self,
idx: u8
) -> Result<&'buffer str, MalformedStructureError>
[src]
&self,
idx: u8
) -> Result<&'buffer str, MalformedStructureError>
Find a string in the strings table by the string index. If the string index is 0, the empty string is returned. Otherwise, the string corresponding to that string index in the strings table is returned.
Errors
Returns a MalformedStructureError::InvalidStringIndex
if the index is outside of the strings table.
Trait Implementations
impl<'buffer> Clone for RawStructure<'buffer>
[src]
fn clone(&self) -> RawStructure<'buffer>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'buffer> Debug for RawStructure<'buffer>
[src]
impl<'buffer> PartialEq<RawStructure<'buffer>> for RawStructure<'buffer>
[src]
fn eq(&self, other: &RawStructure<'buffer>) -> bool
[src]
fn ne(&self, other: &RawStructure<'buffer>) -> bool
[src]
impl<'buffer> Eq for RawStructure<'buffer>
[src]
impl<'buffer> Hash for RawStructure<'buffer>
[src]
Auto Trait Implementations
impl<'buffer> Send for RawStructure<'buffer>
impl<'buffer> Sync for RawStructure<'buffer>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,