pub struct HashTokenPeerAuthenticator<P = HashTokenProvider> { /* private fields */ }Expand description
Peer authenticator backed by AppCore’s signed local token provider.
Implementations§
Source§impl<P> HashTokenPeerAuthenticator<P>where
P: TokenProvider,
impl<P> HashTokenPeerAuthenticator<P>where
P: TokenProvider,
Sourcepub fn new(provider: P, claims: TokenClaims) -> Self
pub fn new(provider: P, claims: TokenClaims) -> Self
Creates an authenticator and scopes its claims to peer RPC.
Trait Implementations§
Source§impl<P: Clone> Clone for HashTokenPeerAuthenticator<P>
impl<P: Clone> Clone for HashTokenPeerAuthenticator<P>
Source§fn clone(&self) -> HashTokenPeerAuthenticator<P>
fn clone(&self) -> HashTokenPeerAuthenticator<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for HashTokenPeerAuthenticator<P>
impl<P: Debug> Debug for HashTokenPeerAuthenticator<P>
Source§impl<P> PeerRpcAuthenticator for HashTokenPeerAuthenticator<P>
impl<P> PeerRpcAuthenticator for HashTokenPeerAuthenticator<P>
Auto Trait Implementations§
impl<P> Freeze for HashTokenPeerAuthenticator<P>where
P: Freeze,
impl<P> RefUnwindSafe for HashTokenPeerAuthenticator<P>where
P: RefUnwindSafe,
impl<P> Send for HashTokenPeerAuthenticator<P>where
P: Send,
impl<P> Sync for HashTokenPeerAuthenticator<P>where
P: Sync,
impl<P> Unpin for HashTokenPeerAuthenticator<P>where
P: Unpin,
impl<P> UnsafeUnpin for HashTokenPeerAuthenticator<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for HashTokenPeerAuthenticator<P>where
P: UnwindSafe,
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