pub struct WifiMsg<'a> {
pub header: PayloadHeader,
pub rpc: Rpc,
pub data: &'a [u8],
pub rpc_parsed: Result<RpcP, EspError>,
}
Fields§
§header: PayloadHeader
§rpc: Rpc
§data: &'a [u8]
§rpc_parsed: Result<RpcP, EspError>
This is a result, because sometimes it can fail, e.g. due to a capacity error, where we’re able to parse the rest of the data directly.
Auto Trait Implementations§
impl<'a> Freeze for WifiMsg<'a>
impl<'a> RefUnwindSafe for WifiMsg<'a>
impl<'a> Send for WifiMsg<'a>
impl<'a> Sync for WifiMsg<'a>
impl<'a> Unpin for WifiMsg<'a>
impl<'a> UnwindSafe for WifiMsg<'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