Struct rppal::system::DeviceInfo
source · pub struct DeviceInfo { /* private fields */ }
Expand description
Retrieves Raspberry Pi device information.
Implementations§
source§impl DeviceInfo
impl DeviceInfo
sourcepub fn new() -> Result<DeviceInfo>
pub fn new() -> Result<DeviceInfo>
Constructs a new DeviceInfo
.
new
attempts to identify the Raspberry Pi’s model and SoC based on
the contents of /proc/cpuinfo
, /sys/firmware/devicetree/base/compatible
and /sys/firmware/devicetree/base/model
.
Trait Implementations§
source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceInfo
impl Debug for DeviceInfo
source§impl PartialEq<DeviceInfo> for DeviceInfo
impl PartialEq<DeviceInfo> for DeviceInfo
source§fn eq(&self, other: &DeviceInfo) -> bool
fn eq(&self, other: &DeviceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeviceInfo
impl Eq for DeviceInfo
impl StructuralEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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