pub struct RevocableClients {
pub clients: HashMap<PublicKey, RevocableClient>,
}Expand description
All revocable clients which have ever been created.
This struct must be persisted in a rollback-resistant data store.
Fields§
§clients: HashMap<PublicKey, RevocableClient>Implementations§
Source§impl RevocableClients
impl RevocableClients
Sourcepub fn iter_valid(&self) -> impl Iterator<Item = (&PublicKey, &RevocableClient)>
pub fn iter_valid(&self) -> impl Iterator<Item = (&PublicKey, &RevocableClient)>
An iterator over all clients which are valid right now.
Sourcepub fn iter_valid_at(
&self,
now: TimestampMs,
) -> impl Iterator<Item = (&PublicKey, &RevocableClient)>
pub fn iter_valid_at( &self, now: TimestampMs, ) -> impl Iterator<Item = (&PublicKey, &RevocableClient)>
An iterator over all clients which are valid at the given time.
Trait Implementations§
Source§impl Clone for RevocableClients
impl Clone for RevocableClients
Source§fn clone(&self) -> RevocableClients
fn clone(&self) -> RevocableClients
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RevocableClients
impl Debug for RevocableClients
Source§impl Default for RevocableClients
impl Default for RevocableClients
Source§fn default() -> RevocableClients
fn default() -> RevocableClients
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RevocableClients
impl<'de> Deserialize<'de> for RevocableClients
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RevocableClients
impl RefUnwindSafe for RevocableClients
impl Send for RevocableClients
impl Sync for RevocableClients
impl Unpin for RevocableClients
impl UnsafeUnpin for RevocableClients
impl UnwindSafe for RevocableClients
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more