Trait Rescue

Source
pub trait Rescue {
Show 18 methods // Required methods fn enter( &self, transport: &TransportWrapper, reset_target: bool, ) -> Result<()>; fn set_mode(&self, mode: RescueMode) -> Result<()>; fn send(&self, data: &[u8]) -> Result<()>; fn recv(&self) -> Result<Vec<u8>>; fn set_speed(&self, speed: u32) -> Result<u32>; fn wait(&self) -> Result<()>; fn reboot(&self) -> Result<()>; // Provided methods fn get_raw(&self, mode: RescueMode) -> Result<Vec<u8>> { ... } fn set_raw(&self, mode: RescueMode, data: &[u8]) -> Result<()> { ... } fn update_firmware(&self, slot: BootSlot, image: &[u8]) -> Result<()> { ... } fn get_boot_log(&self) -> Result<BootLog> { ... } fn get_boot_svc(&self) -> Result<BootSvc> { ... } fn get_device_id(&self) -> Result<DeviceId> { ... } fn set_next_bl0_slot(&self, primary: BootSlot, next: BootSlot) -> Result<()> { ... } fn ownership_unlock(&self, unlock: OwnershipUnlockRequest) -> Result<()> { ... } fn ownership_activate( &self, activate: OwnershipActivateRequest, ) -> Result<()> { ... } fn set_owner_config(&self, data: &[u8]) -> Result<()> { ... } fn erase_owner(&self) -> Result<()> { ... }
}

Required Methods§

Source

fn enter(&self, transport: &TransportWrapper, reset_target: bool) -> Result<()>

Source

fn set_mode(&self, mode: RescueMode) -> Result<()>

Source

fn send(&self, data: &[u8]) -> Result<()>

Source

fn recv(&self) -> Result<Vec<u8>>

Source

fn set_speed(&self, speed: u32) -> Result<u32>

Source

fn wait(&self) -> Result<()>

Source

fn reboot(&self) -> Result<()>

Provided Methods§

Source

fn get_raw(&self, mode: RescueMode) -> Result<Vec<u8>>

Source

fn set_raw(&self, mode: RescueMode, data: &[u8]) -> Result<()>

Source

fn update_firmware(&self, slot: BootSlot, image: &[u8]) -> Result<()>

Source

fn get_boot_log(&self) -> Result<BootLog>

Source

fn get_boot_svc(&self) -> Result<BootSvc>

Source

fn get_device_id(&self) -> Result<DeviceId>

Source

fn set_next_bl0_slot(&self, primary: BootSlot, next: BootSlot) -> Result<()>

Source

fn ownership_unlock(&self, unlock: OwnershipUnlockRequest) -> Result<()>

Source

fn ownership_activate(&self, activate: OwnershipActivateRequest) -> Result<()>

Source

fn set_owner_config(&self, data: &[u8]) -> Result<()>

Source

fn erase_owner(&self) -> Result<()>

Implementors§