Struct drone::templates::Registry [−][src]
Templates registry.
Implementations
impl Registry<'_>
[src]
pub fn new() -> Result<Self>
[src]
Creates a new templates registry.
pub fn layout_ld<W: Write>(
&self,
config: &Config,
stage_two: bool,
writer: W
) -> Result<()>
[src]
&self,
config: &Config,
stage_two: bool,
writer: W
) -> Result<()>
Renders linker script.
pub fn new_src_bin_name_rs(
&self,
device: &Device,
crate_name: &str
) -> Result<String>
[src]
&self,
device: &Device,
crate_name: &str
) -> Result<String>
Renders cortexm src/bin/name.rs
.
pub fn new_src_lib_rs(&self, device: &Device, log: Log) -> Result<String>
[src]
Renders cortexm src/lib.rs
.
pub fn new_src_thr_rs(&self, device: &Device) -> Result<String>
[src]
Renders cortexm src/thr.rs
.
pub fn new_src_tasks_mod_rs(&self) -> Result<String>
[src]
Renders cortexm src/tasks/mod.rs
.
pub fn new_src_tasks_root_rs(&self, device: &Device) -> Result<String>
[src]
Renders cortexm src/tasks/root.rs
.
pub fn new_cargo_toml(
&self,
device: &Device,
crate_name: &str,
contents: &str
) -> Result<String>
[src]
&self,
device: &Device,
crate_name: &str,
contents: &str
) -> Result<String>
Renders Cargo.toml
.
pub fn new_drone_toml(
&self,
device: &Device,
flash_size: u32,
ram_size: u32,
heap: &str,
probe: Probe,
log: Log
) -> Result<String>
[src]
&self,
device: &Device,
flash_size: u32,
ram_size: u32,
heap: &str,
probe: Probe,
log: Log
) -> Result<String>
Renders Drone.toml
.
pub fn new_justfile(&self) -> Result<String>
[src]
Renders Justfile
.
pub fn new_rust_toolchain(&self, toolchain: &str) -> Result<String>
[src]
Renders rust-toolchain
.
pub fn new_cargo_config(&self, device: &Device) -> Result<String>
[src]
Renders .cargo/config
.
pub fn new_gitignore(&self, contents: &str) -> Result<String>
[src]
Renders .gitignore
.
pub fn bmp_reset(&self, config: &Config) -> Result<NamedTempFile>
[src]
Renders BMP reset
command script.
pub fn bmp_flash(&self, config: &Config) -> Result<NamedTempFile>
[src]
Renders BMP flash
command script.
pub fn bmp_gdb(
&self,
config: &Config,
reset: bool,
rustc_substitute_path: &str
) -> Result<NamedTempFile>
[src]
&self,
config: &Config,
reset: bool,
rustc_substitute_path: &str
) -> Result<NamedTempFile>
Renders BMP gdb
command script.
pub fn bmp_swo(
&self,
config: &Config,
ports: &BTreeSet<u32>,
reset: bool,
pipe: &Path
) -> Result<NamedTempFile>
[src]
&self,
config: &Config,
ports: &BTreeSet<u32>,
reset: bool,
pipe: &Path
) -> Result<NamedTempFile>
Renders BMP swo
command script.
pub fn jlink_reset(&self) -> Result<NamedTempFile>
[src]
Renders J-Link reset
command script.
pub fn jlink_flash(
&self,
firmware: &Path,
address: u32
) -> Result<NamedTempFile>
[src]
&self,
firmware: &Path,
address: u32
) -> Result<NamedTempFile>
Renders J-Link flash
command script.
pub fn jlink_gdb(
&self,
config: &Config,
reset: bool,
rustc_substitute_path: &str
) -> Result<NamedTempFile>
[src]
&self,
config: &Config,
reset: bool,
rustc_substitute_path: &str
) -> Result<NamedTempFile>
Renders J-Link gdb
command script.
pub fn jlink_dso(
&self,
config: &Config,
ports: &BTreeSet<u32>,
reset: bool,
pipe: &Path
) -> Result<NamedTempFile>
[src]
&self,
config: &Config,
ports: &BTreeSet<u32>,
reset: bool,
pipe: &Path
) -> Result<NamedTempFile>
Renders J-Link dso
command script.
pub fn openocd_reset(&self) -> Result<String>
[src]
Renders OpenOCD reset
command script.
pub fn openocd_flash(&self, firmware: &Path) -> Result<String>
[src]
Renders OpenOCD flash
command script.
pub fn openocd_gdb_gdb(
&self,
config: &Config,
reset: bool,
rustc_substitute_path: &str
) -> Result<NamedTempFile>
[src]
&self,
config: &Config,
reset: bool,
rustc_substitute_path: &str
) -> Result<NamedTempFile>
Renders OpenOCD gdb
command GDB script.
pub fn openocd_gdb_openocd(&self, config: &Config) -> Result<String>
[src]
Renders OpenOCD gdb
command OpenOCD script.
pub fn openocd_swo(
&self,
config: &Config,
ports: &BTreeSet<u32>,
reset: bool,
pipe: &Path,
output: Option<&Path>
) -> Result<NamedTempFile>
[src]
&self,
config: &Config,
ports: &BTreeSet<u32>,
reset: bool,
pipe: &Path,
output: Option<&Path>
) -> Result<NamedTempFile>
Renders OpenOCD swo
command script.
Auto Trait Implementations
impl<'reg> !RefUnwindSafe for Registry<'reg>
impl<'reg> Send for Registry<'reg>
impl<'reg> Sync for Registry<'reg>
impl<'reg> Unpin for Registry<'reg>
impl<'reg> !UnwindSafe for Registry<'reg>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,