pub struct RescueSerial { /* private fields */ }Implementations§
Source§impl RescueSerial
impl RescueSerial
pub const REBOOT: RescueMode
pub const BAUD: RescueMode
pub const WAIT: RescueMode
pub fn new(uart: Rc<dyn Uart>) -> Self
Trait Implementations§
Source§impl Rescue for RescueSerial
impl Rescue for RescueSerial
fn enter(&self, transport: &TransportWrapper, reset_target: bool) -> Result<()>
fn set_speed(&self, baud: u32) -> Result<u32>
fn set_mode(&self, mode: RescueMode) -> Result<()>
fn wait(&self) -> Result<()>
fn reboot(&self) -> Result<()>
fn send(&self, data: &[u8]) -> Result<()>
fn recv(&self) -> Result<Vec<u8>>
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<()>
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