Skip to main content

AtResult

Type Alias AtResult 

Source
pub type AtResult<'a, const SIZE: usize> = Result<(&'static str, Bytes<SIZE>), (&'static str, AtError<'a>)>;
Expand description

Result type for AT command operations.

Both the success and the error variant carry the AT response prefix string (&'static str) that was registered alongside the command, so callers can always reconstruct the full response line.

  • Ok((prefix, bytes)) — successful response with the AT prefix and payload
  • Err((prefix, error)) — failure with the AT prefix and error kind

Aliased Type§

pub enum AtResult<'a, const SIZE: usize> {
    Ok((&'static str, Bytes<SIZE>)),
    Err((&'static str, AtError<'a>)),
}

Variants§

§1.0.0

Ok((&'static str, Bytes<SIZE>))

Contains the success value

§1.0.0

Err((&'static str, AtError<'a>))

Contains the error value