pub struct PausedDialog { /* private fields */ }Expand description
A dialog frozen by Dialog::freeze: everything to continue it except
the transport and the PIN. Self-contained: it carries the dialog’s own
BPD and UPD (also a UPD valid for this dialog only, which no
SessionState keeps) and TAN selection.
Debug shows no user ID, system ID, dialog ID, UPD or challenge.
Implementations§
Source§impl PausedDialog
impl PausedDialog
Sourcepub fn pending(&self) -> Option<AnyResume>
pub fn pending(&self) -> Option<AnyResume>
The ticket of the paused job; None for a dialog frozen while open.
Take it before Dialog::thaw, which consumes the value.
Sourcepub fn challenge(&self) -> Option<&TanChallenge>
pub fn challenge(&self) -> Option<&TanChallenge>
The TAN challenge the paused job waits on, to show without thawing;
None while a transfer waits on its payee check.
Sourcepub fn vop(&self) -> Option<&VopConfirmation>
pub fn vop(&self) -> Option<&VopConfirmation>
The payee check result a paused transfer waits to have confirmed, to show without thawing.
Sourcepub fn last_message_at(&self) -> Timestamp
pub fn last_message_at(&self) -> Timestamp
Wall clock of the bank’s last response.
Sourcepub fn expires_at(&self) -> Option<Timestamp>
pub fn expires_at(&self) -> Option<Timestamp>
When the bank’s timeout ends the dialog, if it announced one:
last_message_at plus the BPD’s maximum timeout (HIBPA “Maximaler
Timeout-Wert”, seconds; absent or 0 = no limit). Only our own clock
goes into it. The challenge’s validity (HITAN “Gültigkeitsdatum und
-uhrzeit für Challenge”) is a bank-local wall-clock value without a
zone; it stays readable on the challenge itself as a civil
DateTime. None: no timeout announced. Informational:
Dialog::thaw never refuses on time, and the bank may end a
dialog earlier.
Sourcepub fn from_json(json: &str) -> Result<Self>
pub fn from_json(json: &str) -> Result<Self>
Deserialize from JSON produced by PausedDialog::to_json. Any
other format tag fails with FinTSError::StateFormat.