Trait Lifetime

Source
pub trait Lifetime: FromResponse {
    // Required method
    fn expired(&self) -> bool;
}
Expand description

OAuth 2.0 token lifetimes.

Required Methods§

Source

fn expired(&self) -> bool

Returns true if the access token is no longer valid.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§