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<()> { ... }
}