Struct csx64::exec::EmulatorArgs[][src]

pub struct EmulatorArgs {
    pub max_memory: Option<usize>,
    pub stack_size: Option<usize>,
    pub max_files: Option<usize>,
    pub command_line_args: Vec<String>,
}

Holds options for initializing an emulator.

Fields

max_memory: Option<usize>

Maximum amount of memory the emulator can provide to the program. If omitted, defaults to DEFAULT_MAX_MEM.

stack_size: Option<usize>

Amount of stack space to give the program. If omitted, defaults to DEFAULT_STACK_SIZE.

max_files: Option<usize>

Max number of file descriptors the program can use at the same time. If omitted, defaults to DEFAULT_MAX_FD.

command_line_args: Vec<String>

The command line arguments to provide the program. This can be left empty, which is the default, but many programs expect at least one command line argument (typically, exe command).

Trait Implementations

impl Default for EmulatorArgs[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WrappingAs for T[src]