pub struct Pin { /* private fields */ }Implementations§
Source§impl Pin
impl Pin
pub fn new(name: &str, mode: PinMode) -> Self
pub fn read(&self) -> PinValue
pub fn write(&self, value: PinValue)
pub fn set_low(&self)
pub fn set_high(&self)
pub fn set_mode(&mut self, mode: PinMode)
pub fn get_id(&self) -> PinId
pub fn watch<F>(&self, edge: WatchEdge, callback: F) -> bool
pub fn unwatch(&self)
Auto Trait Implementations§
impl Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnsafeUnpin for Pin
impl UnwindSafe for Pin
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