[][src]Enum probe_rs::flashing::ProgressEvent

pub enum ProgressEvent {
    Initialized {
        flash_layout: FlashLayout,
    },
    StartedFilling,
    PageFilled {
        size: u32,
        time: Duration,
    },
    FailedFilling,
    FinishedFilling,
    StartedErasing,
    SectorErased {
        size: u32,
        time: Duration,
    },
    FailedErasing,
    FinishedErasing,
    StartedProgramming,
    PageProgrammed {
        size: u32,
        time: Duration,
    },
    FailedProgramming,
    FinishedProgramming,
}

Possible events during the flashing process.

If flashing works without problems, the events will arrive in the following order:

  • Initialized
  • StartedFilling
  • PageFilled for every page
  • FinishedFilling
  • StartedErasing
  • SectorErased for every sector
  • FinishedErasing
  • StartedProgramming
  • PageProgrammed for every page
  • FinishedProgramming

If an erorr occurs in any stage, one of the Failed* event will be returned, and no further events will be returned.

Variants

Initialized

Fields of Initialized

flash_layout: FlashLayout
StartedFilling

Filling of flash pages has started.

PageFilled

A page has been filled successfully.

Fields of PageFilled

size: u32time: Duration
FailedFilling

Filling of the pages has failed.

FinishedFilling

Filling of the pages has finished successfully.

StartedErasing

Erasing of flash has started.

SectorErased

A sector has been erased successfully.

Fields of SectorErased

size: u32time: Duration
FailedErasing

Erasing of the flash has failed.

FinishedErasing

Erasing of the flash has finished successfully.

StartedProgramming

Programming of the flash has started.

PageProgrammed

A flash page has been programmed successfully.

Fields of PageProgrammed

size: u32time: Duration
FailedProgramming

Programming of the flash failed.

FinishedProgramming

Programming of the flash has finished successfully.

Trait Implementations

impl Debug for ProgressEvent[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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> 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.