Skip to main content

Module arrival_failure

Module arrival_failure 

Expand description

The one face for something that did not arrive.

A piece of data that failed to load (ArrivingView) and a window that did not open show the same thing: an error banner that says what failed, then why, with the way to try again as its action (arrival_failure). A window shows it as a WindowFailure: the same banner, centred in the window’s area at the readable width.

Structs§

WindowFailure
The failure face filling a window: the banner centred in the area at the readable width, standing at rest from its first frame (the window’s arrival brings it in).

Functions§

arrival_failure
The failure face: title says what failed (never an app’s name, which its window already shows), reason says why. The caller adds the way to try again with Banner::with_action.