Trait atat::asynch::AtatClient
source · pub trait AtatClient {
// Required method
async fn send<Cmd: AtatCmd>(
&mut self,
cmd: &Cmd,
) -> Result<Cmd::Response, Error>;
// Provided method
async fn send_retry<Cmd: AtatCmd>(
&mut self,
cmd: &Cmd,
) -> Result<Cmd::Response, Error> { ... }
}
Required Methods§
sourceasync fn send<Cmd: AtatCmd>(
&mut self,
cmd: &Cmd,
) -> Result<Cmd::Response, Error>
async fn send<Cmd: AtatCmd>( &mut self, cmd: &Cmd, ) -> Result<Cmd::Response, Error>
Send an AT command.
cmd
must implement AtatCmd
.
This function will also make sure that at least self.config.cmd_cooldown
has passed since the last response or URC has been received, to allow
the slave AT device time to deliver URC’s.
Provided Methods§
Object Safety§
This trait is not object safe.