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

pub enum ProgressEvent {
Show 13 variants 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,
}
Expand description

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

flash_layout: FlashLayout

The layout of the flash contents as it will be used by the flash procedure. This is an exact report of what the flashing procedure will do during the flashing process.

The flash layout has been built and the flashing procedure was initialized.

StartedFilling

Filling of flash pages has started.

PageFilled

Fields

size: u32

The size of the page in bytes.

time: Duration

The time it took to fill this flash page.

A page has been filled successfully. This does not mean the page has been programmed yet. Only its contents are determined at this point!

FailedFilling

Filling of the pages has failed.

FinishedFilling

Filling of the pages has finished successfully.

StartedErasing

Erasing of flash has started.

SectorErased

Fields

size: u32

The size of the sector in bytes.

time: Duration

The time it took to erase this sector.

A sector has been erased successfully.

FailedErasing

Erasing of the flash has failed.

FinishedErasing

Erasing of the flash has finished successfully.

StartedProgramming

Programming of the flash has started.

PageProgrammed

Fields

size: u32

The size of this page in bytes.

time: Duration

The time it took to program this page.

A flash page has been programmed successfully.

FailedProgramming

Programming of the flash failed.

FinishedProgramming

Programming of the flash has finished successfully.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.