pub trait FlexPin {
// Required methods
fn set_as_input(&mut self);
fn set_as_output(&mut self);
fn set_low(&mut self);
fn set_high(&mut self);
fn is_high(&self) -> bool;
fn is_low(&self) -> bool;
async fn wait_for_high(&mut self);
async fn wait_for_low(&mut self);
fn set_pull(&mut self, pull: Pull);
}
Required Methods§
fn set_as_input(&mut self)
fn set_as_output(&mut self)
fn set_low(&mut self)
fn set_high(&mut self)
fn is_high(&self) -> bool
fn is_low(&self) -> bool
async fn wait_for_high(&mut self)
async fn wait_for_low(&mut self)
fn set_pull(&mut self, pull: Pull)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.