pub trait Interface {
    // Required methods
    async fn wait_for_handshake(&mut self);
    async fn wait_for_ready(&mut self);
    async fn transfer(&mut self, rx: &mut [u8], tx: &[u8]);
}Expand description
Physical interface trait for communicating with the ESP chip.
Required Methods§
Sourceasync fn wait_for_handshake(&mut self)
 
async fn wait_for_handshake(&mut self)
Wait for the HANDSHAKE signal indicating the ESP is ready for a new transaction.
Sourceasync fn wait_for_ready(&mut self)
 
async fn wait_for_ready(&mut self)
Wait for the READY signal indicating the ESP has data to send.
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.