pub struct BootstrapOptions {
pub uart_params: UartParams,
pub spi_params: SpiParams,
pub protocol: BootstrapProtocol,
pub clear_uart: Option<bool>,
pub reset_delay: Duration,
pub leave_in_bootstrap: bool,
pub leave_in_reset: bool,
pub inter_frame_delay: Option<Duration>,
pub flash_erase_delay: Option<Duration>,
}
Expand description
Options which control bootstrap behavior. The meaning of each of these values depends on the specific bootstrap protocol being used.
Fields§
§uart_params: UartParams
§spi_params: SpiParams
§protocol: BootstrapProtocol
Bootstrap protocol to use.
clear_uart: Option<bool>
Whether to reset target and clear UART RX buffer after bootstrap. For Chip Whisperer board only.
reset_delay: Duration
Duration of the reset pulse.
leave_in_bootstrap: bool
If set, keep the bootstrap strapping applied and do not perform the post-bootstrap reset sequence.
leave_in_reset: bool
If set, leave the reset signal asserted after completed bootstrapping.
inter_frame_delay: Option<Duration>
Duration of the inter-frame delay.
flash_erase_delay: Option<Duration>
Duration of the flash-erase delay.
Trait Implementations§
Source§impl Args for BootstrapOptions
impl Args for BootstrapOptions
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§impl Clone for BootstrapOptions
impl Clone for BootstrapOptions
Source§fn clone(&self) -> BootstrapOptions
fn clone(&self) -> BootstrapOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BootstrapOptions
impl Debug for BootstrapOptions
Source§impl<'de> Deserialize<'de> for BootstrapOptions
impl<'de> Deserialize<'de> for BootstrapOptions
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for BootstrapOptions
impl FromArgMatches for BootstrapOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for BootstrapOptions
impl RefUnwindSafe for BootstrapOptions
impl Send for BootstrapOptions
impl Sync for BootstrapOptions
impl Unpin for BootstrapOptions
impl UnwindSafe for BootstrapOptions
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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
Mutably borrows from an owned value. Read more