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§

source

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§

source

async fn send_retry<Cmd: AtatCmd>( &mut self, cmd: &Cmd, ) -> Result<Cmd::Response, Error>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<RW: Read + Write, D: Digester> AtatClient for SimpleClient<'_, RW, D>

source§

impl<W: Write, const INGRESS_BUF_SIZE: usize> AtatClient for Client<'_, W, INGRESS_BUF_SIZE>