pub struct InMemoryCredentialLink { /* private fields */ }Expand description
In-memory CredentialLink, for tests and single-process deployments.
Implementations§
Trait Implementations§
Source§impl CredentialLink for InMemoryCredentialLink
impl CredentialLink for InMemoryCredentialLink
Source§fn link<'life0, 'async_trait>(
&'life0 self,
credential: LinkedCredential,
) -> Pin<Box<dyn Future<Output = Result<(), LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn link<'life0, 'async_trait>(
&'life0 self,
credential: LinkedCredential,
) -> Pin<Box<dyn Future<Output = Result<(), LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Bind a credential to a principal. Read more
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
class: CredentialClass,
locator: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<LinkedCredential>, LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
class: CredentialClass,
locator: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<LinkedCredential>, LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find the credential — and therefore the principal — behind a locator. Read more
Source§fn credentials_for<'life0, 'life1, 'async_trait>(
&'life0 self,
principal: &'life1 Principal,
) -> Pin<Box<dyn Future<Output = Result<Vec<LinkedCredential>, LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn credentials_for<'life0, 'life1, 'async_trait>(
&'life0 self,
principal: &'life1 Principal,
) -> Pin<Box<dyn Future<Output = Result<Vec<LinkedCredential>, LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Every credential held by a principal.
Source§fn unlink<'life0, 'life1, 'async_trait>(
&'life0 self,
class: CredentialClass,
locator: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unlink<'life0, 'life1, 'async_trait>(
&'life0 self,
class: CredentialClass,
locator: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, LinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove a link. Returns whether a row was removed.
Source§impl Debug for InMemoryCredentialLink
impl Debug for InMemoryCredentialLink
Auto Trait Implementations§
impl !Freeze for InMemoryCredentialLink
impl Forget for InMemoryCredentialLink
impl Move for InMemoryCredentialLink
impl RefUnwindSafe for InMemoryCredentialLink
impl Send for InMemoryCredentialLink
impl Sync for InMemoryCredentialLink
impl Unpin for InMemoryCredentialLink
impl UnsafeUnpin for InMemoryCredentialLink
impl UnwindSafe for InMemoryCredentialLink
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