pub struct Led {
state: &'static LedState,
}Fields§
§state: &'static LedStateImplementations§
Source§impl Led
impl Led
pub fn open_by_alias(name: &str) -> Result<Self, Error>
pub fn open_by_label(label: &str) -> Result<Self, Error>
fn open_for_node(node: usize) -> Result<Self, Error>
pub fn label(&self) -> &'static str
pub fn on(&self) -> Result<(), Error>
pub fn off(&self) -> Result<(), Error>
pub fn set(&self, on: bool) -> Result<(), Error>
pub fn toggle(&self) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Led
impl RefUnwindSafe for Led
impl Send for Led
impl Sync for Led
impl Unpin for Led
impl UnsafeUnpin for Led
impl UnwindSafe for Led
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