Skip to main content

Options

Struct Options 

Source
pub struct Options {
Show 22 fields pub vcd: Option<PathBuf>, pub break_at: Option<u32>, pub analog: bool, pub wifi: Option<String>, pub coverage: bool, pub interactive: Option<Interactive>, pub screenshot: Option<Screenshot>, pub probes: Vec<String>, pub scope: Option<PathBuf>, pub trigger: Option<Trigger>, pub decodes: Vec<DecodeSection>, pub gdb: Option<GdbRequest>, pub pcap: Option<PathBuf>, pub pcap_air: Option<PathBuf>, pub pcap_eth: Option<PathBuf>, pub host_network: bool, pub host_forwards: Vec<String>, pub heap_sample: bool, pub heap_interval: Option<u64>, pub heap_min_free: Option<u32>, pub heap_csv: Option<PathBuf>, pub sd_export: Option<PathBuf>,
}
Expand description

What the caller wants recorded about a run, beyond pass or fail.

Fields§

§vcd: Option<PathBuf>

Write every net transition to this file as a VCD.

§break_at: Option<u32>

Stop the first run at this program counter and report the registers.

§analog: bool

Solve the circuit’s analog network alongside the digital run. Off by default; [sim] analog = true turns it on for the project.

§wifi: Option<String>

Override the project’s Wi-Fi access point for this run.

§coverage: bool

Turn on instruction coverage and print the backend’s report after the run. A backend without coverage ignores it.

§interactive: Option<Interactive>

Forward lines typed on stdin to one board’s console, so a REPL or a firmware that asks a question can be answered from the terminal.

§screenshot: Option<Screenshot>

Write a simulated display here as a PNG: at the end of a run, and when a test fails.

§probes: Vec<String>

Points to watch, in addition to the project’s [[probe]] entries. Each is its own channel name.

§scope: Option<PathBuf>

Write every probe’s record here as a CSV at the end of the run.

§trigger: Option<Trigger>

Start the scope’s window at a logic-analyzer trigger instead of at time zero. The trigger names a probe the run already watches.

§decodes: Vec<DecodeSection>

Protocols to read off the probed channels, in addition to the project’s [[decode]] entries.

§gdb: Option<GdbRequest>

Serve the GDB remote protocol on one board’s chip once it is booted.

§pcap: Option<PathBuf>

Write the simulated network’s traffic here as a pcap at the end of the run, for Wireshark.

§pcap_air: Option<PathBuf>

Write every 802.11 frame the radio carries into a link-type-105 pcap as the run goes.

§pcap_eth: Option<PathBuf>

Write the Ethernet frames the station’s MAC carries into a link-type-1 pcap as the run goes.

§host_network: bool

Put host sockets behind the Wi-Fi gateway. Non-deterministic by nature; the forwarded ports are tcp:[host:]port-[guest:]port.

§host_forwards: Vec<String>§heap_sample: bool

Ask the firmware for its free heap at the end of the run and print it. A firmware that cannot answer makes the run fail, so CI can gate on it.

§heap_interval: Option<u64>

Sample the free heap every this many nanoseconds of simulated time. None keeps the end-of-run sample that heap_sample asks for.

§heap_min_free: Option<u32>

Fail the run when the free heap drops below this many bytes.

§heap_csv: Option<PathBuf>

Append every heap sample to this CSV as it is taken.

§sd_export: Option<PathBuf>

Save the image of every SPI microSD card the guest wrote, after the run. One card writes to the path; several treat it as a directory.

Trait Implementations§

Source§

impl Clone for Options

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Options

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.