Add a comment about the interaction between CardTransaction::init_card_caps and CardTransaction::initialize

This commit is contained in:
Heiko Schaefer 2023-04-13 18:07:02 +02:00
parent a85d3164d7
commit 629eecd510
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -70,7 +70,11 @@ pub trait CardTransaction {
/// Set the card capabilities in the CardTransaction.
///
/// Setting these capabilities is typically part of a bootstrapping
/// process: the information about the card's capabilities is typically
/// process (this fn is typically called from [CardTransaction::initialize].
/// When implementing CardTransaction, you probably want to call
/// [CardTransaction::initialize] during setup).
///
/// The information about the card's capabilities is typically
/// requested from the card using the same CardTransaction instance,
/// before the card's capabilities have been initialized.
fn init_card_caps(&mut self, caps: CardCaps);