[][src]Struct wishbone_tool::config::Config

pub struct Config {
    pub usb_pid: Option<u16>,
    pub usb_vid: Option<u16>,
    pub usb_bus: Option<u8>,
    pub usb_device: Option<u8>,
    pub memory_address: Option<u32>,
    pub memory_value: Option<u32>,
    pub server_kind: Vec<ServerKind>,
    pub bridge_kind: BridgeKind,
    pub serial_port: Option<String>,
    pub serial_baud: Option<usize>,
    pub pcie_path: Option<PathBuf>,
    pub spi_pins: Option<SpiPins>,
    pub bind_addr: String,
    pub bind_port: u16,
    pub gdb_port: u16,
    pub ethernet_host: Option<String>,
    pub ethernet_port: u16,
    pub ethernet_tcp: bool,
    pub random_loops: Option<u32>,
    pub random_address: Option<u32>,
    pub random_range: Option<u32>,
    pub messible_address: Option<u32>,
    pub register_mapping: HashMap<String, Option<u32>>,
    pub debug_offset: u32,
    pub load_name: Option<String>,
    pub load_addr: Option<u32>,
    pub terminal_mouse: bool,
}

Fields

usb_pid: Option<u16>usb_vid: Option<u16>usb_bus: Option<u8>usb_device: Option<u8>memory_address: Option<u32>memory_value: Option<u32>server_kind: Vec<ServerKind>bridge_kind: BridgeKindserial_port: Option<String>serial_baud: Option<usize>pcie_path: Option<PathBuf>spi_pins: Option<SpiPins>bind_addr: Stringbind_port: u16gdb_port: u16ethernet_host: Option<String>ethernet_port: u16ethernet_tcp: boolrandom_loops: Option<u32>random_address: Option<u32>random_range: Option<u32>messible_address: Option<u32>register_mapping: HashMap<String, Option<u32>>debug_offset: u32load_name: Option<String>load_addr: Option<u32>terminal_mouse: bool

Implementations

impl Config[src]

pub fn parse(matches: ArgMatches) -> Result<Self, ConfigError>[src]

Trait Implementations

impl Clone for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.