/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use crate::errors; use crate::statecallback::StateCallback; pub struct Transaction {} impl Transaction { pub fn new( timeout: u64, callback: StateCallback>, new_device_cb: F, ) -> crate::Result where F: Fn(String, &dyn Fn() -> bool), { callback.call(Err(errors::AuthenticatorError::U2FToken( errors::U2FTokenError::NotSupported, ))); Err(errors::AuthenticatorError::U2FToken( errors::U2FTokenError::NotSupported, )) } pub fn cancel(&mut self) { /* No-op. */ } }