pub struct SimSection {Show 14 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>,
pub wifi_sta: Option<String>,
}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.
wifi_sta: Option<String>A virtual station that joins the guest’s own access point (--wifi-sta),
for a firmware in AP mode: ssid=NAME[,psk=PASS][,mac=..]. It takes the
place of wifi; a run with both is refused because AP+STA is not
modelled.
Trait Implementations§
Source§impl Debug for SimSection
impl Debug for SimSection
Source§impl Default for SimSection
impl Default for SimSection
Source§impl<'de> Deserialize<'de> for SimSection
impl<'de> Deserialize<'de> for SimSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Forget for SimSection
impl Freeze for SimSectionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<AccessPoint>: Freeze,
PhantomData<ServiceSpec>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for SimSection
impl RefUnwindSafe for SimSection
impl Send for SimSection
impl Sync for SimSection
impl Unpin for SimSection
impl UnsafeUnpin for SimSectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<AccessPoint>: UnsafeUnpin,
PhantomData<ServiceSpec>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
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