esp8266_wifi_serial/
error.rs

1/// Possible error types that may happen during manipulating the WiFi module.
2///
3/// In order to the crate interface simplification, error details have been omitted.
4#[derive(Debug, PartialEq, Eq, Clone, Copy)]
5pub enum Error {
6    /// An error occurred during the receiving bytes from the serial port.
7    ReadBuffer,
8    /// An error occurred during the sending bytes into the serial port.
9    WriteBuffer,
10    /// Reader buffer is full.
11    BufferFull,
12    /// Operation timeout reached.
13    Timeout,
14    /// Unable to join selected access point.
15    JoinApError,
16}
17
18/// A specialized result type for the operations with the esp8266 module.
19pub type Result<T> = core::result::Result<T, Error>;