pub struct Alienware { /* private fields */ }Expand description
Access to the settings for a Alienware server
Implementations§
Source§impl Alienware
impl Alienware
Sourcepub fn is_alienware(&self) -> bool
pub fn is_alienware(&self) -> bool
Check that this is an Alienware server (i.e. has the alienware platform settings in sysfs)
Sourcepub fn set_hdmi_source(self, source: HDMISource) -> Result<()>
pub fn set_hdmi_source(self, source: HDMISource) -> Result<()>
Set the source for the HDMI Output port
Sourcepub fn get_rgb_zones(&self) -> Result<RGBZones>
pub fn get_rgb_zones(&self) -> Result<RGBZones>
Get the state of the various LEDs
Sourcepub fn set_rgb_zone(
&self,
zone: Zone,
red: u8,
green: u8,
blue: u8,
) -> Result<()>
pub fn set_rgb_zone( &self, zone: Zone, red: u8, green: u8, blue: u8, ) -> Result<()>
Set an LED colour
Sourcepub fn has_rgb_zones(self) -> bool
pub fn has_rgb_zones(self) -> bool
Checks whether the alienware LED setup is available
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Alienware
impl RefUnwindSafe for Alienware
impl Send for Alienware
impl Sync for Alienware
impl Unpin for Alienware
impl UnwindSafe for Alienware
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