pub struct Flasher {
pub size: usize,
/* private fields */
}
Fields
size: usize
Implementations
sourceimpl Flasher
impl Flasher
pub fn new(ec: EcFlash) -> Self
pub unsafe fn start(&mut self) -> Result<u8, ()>
pub unsafe fn read<F: Fn(usize)>(&mut self, callback: F) -> Result<Vec<u8>, ()>
pub unsafe fn erase<F: Fn(usize)>(&mut self, callback: F) -> Result<(), ()>
pub unsafe fn write<F: Fn(usize)>(
&mut self,
buf: &[u8],
callback: F
) -> Result<(), ()>
pub unsafe fn stop(&mut self) -> Result<(), ()>
Auto Trait Implementations
impl RefUnwindSafe for Flasher
impl Send for Flasher
impl Sync for Flasher
impl Unpin for Flasher
impl UnwindSafe for Flasher
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more