Trait opentitanlib::transport::ProxyOps
source · pub trait ProxyOps {
// Required methods
fn provides_map(&self) -> Result<HashMap<String, String>>;
fn bootstrap(
&self,
options: &BootstrapOptions,
payload: &[u8]
) -> Result<()>;
fn apply_pin_strapping(&self, strapping_name: &str) -> Result<()>;
fn remove_pin_strapping(&self, strapping_name: &str) -> Result<()>;
fn apply_default_configuration_with_strap(
&self,
strapping_name: &str
) -> Result<()>;
}
Expand description
Methods available only on the Proxy implementation of the Transport trait.
Required Methods§
sourcefn provides_map(&self) -> Result<HashMap<String, String>>
fn provides_map(&self) -> Result<HashMap<String, String>>
Returns a string->string map containing user-defined aspects “provided” by the testbed setup. For instance, whether a SPI flash chip is fitted in the socket, or whether pullup resistors are suitable for high-speed I2C. Most of the time, this information will not come from the actual transport layer, but from the TransportWrapper above it.
fn bootstrap(&self, options: &BootstrapOptions, payload: &[u8]) -> Result<()>
fn apply_pin_strapping(&self, strapping_name: &str) -> Result<()>
fn remove_pin_strapping(&self, strapping_name: &str) -> Result<()>
sourcefn apply_default_configuration_with_strap(
&self,
strapping_name: &str
) -> Result<()>
fn apply_default_configuration_with_strap( &self, strapping_name: &str ) -> Result<()>
Applies the default transport init configuration expect with the specify strap applied.