pub struct SimSection {Show 13 fields
pub firmware: Option<String>,
pub bootloader: Option<String>,
pub partition_table: Option<String>,
pub rom: Option<String>,
pub elf: Option<String>,
pub flash_size: Option<String>,
pub seed: Option<u64>,
pub mac: Option<String>,
pub runtime: Runtime,
pub script: Option<String>,
pub scripts: Vec<String>,
pub analog: bool,
pub wifi: Option<WifiSpec>,
}Fields§
§firmware: Option<String>§bootloader: Option<String>§partition_table: Option<String>§rom: Option<String>§elf: Option<String>The firmware’s ELF, relative to the project. The image runs without it; the symbol table is what lets the machine start a Bluetooth controller inside the guest, and what names addresses in logs and the debugger.
flash_size: Option<String>§seed: Option<u64>§mac: Option<String>§runtime: RuntimeWhich runtime the firmware speaks to the console. native is a bare
program; micropython and circuitpython are the stock firmwares whose
REPLs accept a pasted script.
script: Option<String>A Python file pasted into a MicroPython or CircuitPython REPL after boot. Only read when the runtime is a Python one; the path is relative to the project.
scripts: Vec<String>Modules pasted alongside the entry script, as path or
name = path. Each keeps its relative path on the device, so
"lib/util.py" becomes /lib/util.py and import util works after
the directory is created.
analog: boolSolve the analog network while the firmware runs. The --analog flag
turns it on for one run without editing the file.
wifi: Option<WifiSpec>Simulated Wi-Fi network. A bare string is the esp32sim access-point
syntax (ssid=NAME[,psk=PASS]); a table adds further access points,
networks a scan should see, and the services the router answers.
Absent means the radio has no network.
Trait Implementations§
Source§impl Debug for SimSection
impl Debug for SimSection
Source§impl Default for SimSection
impl Default for SimSection
Source§fn default() -> SimSection
fn default() -> SimSection
Source§impl<'de> Deserialize<'de> for SimSection
impl<'de> Deserialize<'de> for SimSection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Forget for SimSection
impl Freeze for SimSection
impl Move for SimSection
impl RefUnwindSafe for SimSection
impl Send for SimSection
impl Sync for SimSection
impl Unpin for SimSection
impl UnsafeUnpin for SimSection
impl UnwindSafe for SimSection
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more