pub struct RescueSerial { /* private fields */ }
Implementations§
Source§impl RescueSerial
impl RescueSerial
pub const RESCUE: [u8; 4] = _
pub const RESCUE_B: [u8; 4] = _
pub const REBOOT: [u8; 4] = _
pub const BAUD: [u8; 4] = _
pub const BOOT_LOG: [u8; 4] = _
pub const BOOT_SVC_REQ: [u8; 4] = _
pub const BOOT_SVC_RSP: [u8; 4] = _
pub const OWNER_BLOCK: [u8; 4] = _
pub const WAIT: [u8; 4] = _
pub fn new(uart: Rc<dyn Uart>) -> Self
pub fn enter( &self, transport: &TransportWrapper, reset_target: bool, ) -> Result<()>
pub fn set_baud(&self, baud: u32) -> Result<()>
pub fn set_mode(&self, mode: [u8; 4]) -> Result<()>
pub fn wait(&self) -> Result<()>
pub fn reboot(&self) -> Result<()>
pub fn update_firmware(&self, slot: BootSlot, image: &[u8]) -> Result<()>
pub fn get_boot_log_raw(&self) -> Result<Vec<u8>>
pub fn get_boot_log(&self) -> Result<BootLog>
pub fn get_boot_svc_raw(&self) -> Result<Vec<u8>>
pub fn get_boot_svc(&self) -> Result<BootSvc>
pub fn set_boot_svc_raw(&self, data: &[u8]) -> Result<()>
pub fn set_next_bl0_slot(&self, primary: BootSlot, next: BootSlot) -> Result<()>
pub fn ownership_unlock(&self, unlock: OwnershipUnlockRequest) -> Result<()>
pub fn ownership_activate( &self, activate: OwnershipActivateRequest, ) -> Result<()>
pub fn set_owner_config(&self, data: &[u8]) -> Result<()>
Auto Trait Implementations§
impl Freeze for RescueSerial
impl !RefUnwindSafe for RescueSerial
impl !Send for RescueSerial
impl !Sync for RescueSerial
impl Unpin for RescueSerial
impl !UnwindSafe for RescueSerial
Blanket Implementations§
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