pub struct UserButton {
pub pin: Input,
}Fields§
§pin: InputTrait Implementations§
Source§impl ErrorType for UserButton
impl ErrorType for UserButton
Source§type Error = Infallible
type Error = Infallible
Error type
Source§impl InputPin for UserButton
impl InputPin for UserButton
Source§impl Peripheral for UserButton
impl Peripheral for UserButton
Source§impl Wait for UserButton
impl Wait for UserButton
Source§async fn wait_for_high(&mut self) -> Result<(), Self::Error>
async fn wait_for_high(&mut self) -> Result<(), Self::Error>
Wait until the pin is high. If it is already high, return immediately. Read more
Source§async fn wait_for_low(&mut self) -> Result<(), Self::Error>
async fn wait_for_low(&mut self) -> Result<(), Self::Error>
Wait until the pin is low. If it is already low, return immediately. Read more
Source§async fn wait_for_rising_edge(&mut self) -> Result<(), Self::Error>
async fn wait_for_rising_edge(&mut self) -> Result<(), Self::Error>
Wait for the pin to undergo a transition from low to high. Read more
Auto Trait Implementations§
impl Freeze for UserButton
impl RefUnwindSafe for UserButton
impl !Send for UserButton
impl !Sync for UserButton
impl Unpin for UserButton
impl UnsafeUnpin for UserButton
impl UnwindSafe for UserButton
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