pub struct RevocableClientsHandle(pub RwLock<RevocableClients>);Expand description
A locked RevocableClients, newtyped so it can implement
GetRevocableClientStatus. Share via Arc<RevocableClientsHandle>.
Tuple Fields§
§0: RwLock<RevocableClients>Trait Implementations§
Source§impl Debug for RevocableClientsHandle
impl Debug for RevocableClientsHandle
Source§impl GetRevocableClientStatus for RevocableClientsHandle
impl GetRevocableClientStatus for RevocableClientsHandle
Source§fn get_client_status(
&self,
client_pk: &PublicKey,
now: TimestampMs,
) -> Option<RevocableClientStatus>
fn get_client_status( &self, client_pk: &PublicKey, now: TimestampMs, ) -> Option<RevocableClientStatus>
The status of the revocable client identified by
client_pk at now,
or None if no client with this pubkey exists.Auto Trait Implementations§
impl !Freeze for RevocableClientsHandle
impl RefUnwindSafe for RevocableClientsHandle
impl Send for RevocableClientsHandle
impl Sync for RevocableClientsHandle
impl Unpin for RevocableClientsHandle
impl UnsafeUnpin for RevocableClientsHandle
impl UnwindSafe for RevocableClientsHandle
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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