pub struct Control<'a> { /* private fields */ }Expand description
Control handle for the driver.
You can use this object to control the modem at runtime, such as running AT commands.
Implementations§
Source§impl<'a> Control<'a>
impl<'a> Control<'a>
Sourcepub async fn at_command(&self, commad: &[u8]) -> ArrayString<CAP_SIZE>
pub async fn at_command(&self, commad: &[u8]) -> ArrayString<CAP_SIZE>
Run an AT command.
The response is written in resp and its length returned.
Auto Trait Implementations§
impl<'a> Freeze for Control<'a>
impl<'a> !RefUnwindSafe for Control<'a>
impl<'a> !Send for Control<'a>
impl<'a> !Sync for Control<'a>
impl<'a> Unpin for Control<'a>
impl<'a> !UnwindSafe for Control<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more