Struct drone::templates::Registry[][src]

pub struct Registry<'reg>(_);

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]

Renders linker script.

pub fn new_src_bin_name_rs(
    &self,
    device: &Device,
    crate_name: &str
) -> Result<String>
[src]

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]

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]

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]

Renders BMP gdb command script.

pub fn bmp_swo(
    &self,
    config: &Config,
    ports: &BTreeSet<u32>,
    reset: bool,
    pipe: &Path
) -> Result<NamedTempFile>
[src]

Renders BMP swo command script.

Renders J-Link reset command script.

Renders J-Link flash command script.

Renders J-Link gdb command script.

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]

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]

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]

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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,