[][src]Struct ecflash::Flasher

pub struct Flasher { /* fields omitted */ }

Methods

impl Flasher[src]

pub fn new(ec: EcFlash) -> Self[src]

pub unsafe fn start(&mut self) -> Result<u8, ()>[src]

pub unsafe fn read<F: Fn(usize)>(&mut self, callback: F) -> Result<Vec<u8>, ()>[src]

pub unsafe fn erase<F: Fn(usize)>(&mut self, callback: F) -> Result<(), ()>[src]

pub unsafe fn write<F: Fn(usize)>(
    &mut self,
    buf: &[u8],
    callback: F
) -> Result<(), ()>
[src]

pub unsafe fn stop(&mut self) -> Result<(), ()>[src]

Auto Trait Implementations

impl Send for Flasher

impl Sync for Flasher

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]