Add documentation

This commit is contained in:
Julien Cretin
2022-03-02 20:45:29 +01:00
committed by Julien Cretin
parent 18faf9f38f
commit 6b8523ba93
2 changed files with 6 additions and 0 deletions

4
src/env/mod.rs vendored
View File

@@ -6,9 +6,13 @@ use crypto::rng256::Rng256;
pub mod test;
pub trait UserPresence {
/// Blocks for user presence.
///
/// Returns an error in case of timeout or keepalive error.
fn check(&self, cid: ChannelID) -> Result<(), Ctap2StatusCode>;
}
/// Describes what CTAP needs to function.
pub trait Env {
type Rng: Rng256;
type UserPresence: UserPresence;