Share the platform-neutral Rust mobile contract (#91)
Dependency security audit / rustsec (push) Failing after 22s
Dependency security audit / rustsec (push) Failing after 22s
This commit is contained in:
1 parent
fcb36a0684
commit
180851087b
52 files changed
+8932
-4263
No files matched your search
@@ -55,6 +55,12 @@ pub trait AuthenticationClock: Send + Sync + 'static {
|
||||
fn now(&self) -> Duration;
|
||||
}
|
||||
|
||||
impl<T: AuthenticationClock + ?Sized> AuthenticationClock for Arc<T> {
|
||||
fn now(&self) -> Duration {
|
||||
(**self).now()
|
||||
}
|
||||
}
|
||||
|
||||
/// Process-local monotonic clock used by production sessions.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct SystemAuthenticationClock {
|
||||
|
||||
Reference in new issue
Block a user