Struct teensy4_selfrebootor::Rebootor
source · pub struct Rebootor<'a> { /* private fields */ }
Expand description
The rebootor USB driver.
Once it receives a reboot request (teensy_loader_cli -r
), it reboots
the device into the HalfKay bootloader for flashing.
This allows reflashing without having to press the boot
hardware button.
Implementations§
source§impl<'a> Rebootor<'a>
impl<'a> Rebootor<'a>
sourcepub fn new(bus_alloc: &'a UsbBusAllocator<BusAdapter>) -> Self
pub fn new(bus_alloc: &'a UsbBusAllocator<BusAdapter>) -> Self
Creates a rebootor usb device.
In order for the device to function, its poll
function has to be called
periodically.
For more information, see the crate’s examples.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Rebootor<'a>
impl<'a> Send for Rebootor<'a>
impl<'a> Sync for Rebootor<'a>
impl<'a> Unpin for Rebootor<'a>
impl<'a> !UnwindSafe for Rebootor<'a>
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