Struct web_embedded_hal::components::WebButton
source · [−]pub struct WebButton { /* private fields */ }
Implementations
Trait Implementations
sourceimpl ErrorType for WebButton
impl ErrorType for WebButton
type Error = Infallible
type Error = Infallible
Error type
sourceimpl Wait for WebButton
impl Wait for WebButton
type WaitForHighFuture<'m> = SignalFuture<'m, ()>
type WaitForHighFuture<'m> = SignalFuture<'m, ()>
The future returned by the wait_for_high
function.
sourcefn wait_for_high<'m>(&'m mut self) -> Self::WaitForHighFuture<'m>
fn wait_for_high<'m>(&'m mut self) -> Self::WaitForHighFuture<'m>
Wait until the pin is high. If it is already high, return immediately. Read more
type WaitForLowFuture<'m> = SignalFuture<'m, ()>
type WaitForLowFuture<'m> = SignalFuture<'m, ()>
The future returned by wait_for_low
.
sourcefn wait_for_low<'m>(&'m mut self) -> Self::WaitForLowFuture<'m>
fn wait_for_low<'m>(&'m mut self) -> Self::WaitForLowFuture<'m>
Wait until the pin is low. If it is already low, return immediately. Read more
type WaitForRisingEdgeFuture<'m> = SignalFuture<'m, ()>
type WaitForRisingEdgeFuture<'m> = SignalFuture<'m, ()>
The future returned from wait_for_rising_edge
.
sourcefn wait_for_rising_edge<'m>(&'m mut self) -> Self::WaitForRisingEdgeFuture<'m>
fn wait_for_rising_edge<'m>(&'m mut self) -> Self::WaitForRisingEdgeFuture<'m>
Wait for the pin to undergo a transition from low to high. Read more
type WaitForFallingEdgeFuture<'m> = SignalFuture<'m, ()>
type WaitForFallingEdgeFuture<'m> = SignalFuture<'m, ()>
The future returned from wait_for_falling_edge
.
sourcefn wait_for_falling_edge<'m>(&'m mut self) -> Self::WaitForFallingEdgeFuture<'m>
fn wait_for_falling_edge<'m>(&'m mut self) -> Self::WaitForFallingEdgeFuture<'m>
Wait for the pin to undergo a transition from high to low. Read more
type WaitForAnyEdgeFuture<'m> = SignalFuture<'m, ()>
type WaitForAnyEdgeFuture<'m> = SignalFuture<'m, ()>
The future returned from wait_for_any_edge
.
sourcefn wait_for_any_edge<'m>(&'m mut self) -> Self::WaitForAnyEdgeFuture<'m>
fn wait_for_any_edge<'m>(&'m mut self) -> Self::WaitForAnyEdgeFuture<'m>
Wait for the pin to undergo any transition, i.e low to high OR high to low.
Auto Trait Implementations
impl !RefUnwindSafe for WebButton
impl Send for WebButton
impl Sync for WebButton
impl Unpin for WebButton
impl !UnwindSafe for WebButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more