pub struct IdentityStore { /* private fields */ }Expand description
High-level identity store.
Implementations§
Source§impl IdentityStore
impl IdentityStore
Sourcepub fn new(backend: Box<dyn IdentityBackend>) -> Self
pub fn new(backend: Box<dyn IdentityBackend>) -> Self
Construct a new store wrapping a backend.
Sourcepub fn register(&self, identity: ActorIdentity) -> Result<(), IdentityError>
pub fn register(&self, identity: ActorIdentity) -> Result<(), IdentityError>
Register a new identity. Fails if the actor already exists.
Sourcepub fn lookup(&self, actor_id: &str) -> Result<ActorIdentity, IdentityError>
pub fn lookup(&self, actor_id: &str) -> Result<ActorIdentity, IdentityError>
Look up an identity.
Auto Trait Implementations§
impl !RefUnwindSafe for IdentityStore
impl !UnwindSafe for IdentityStore
impl Freeze for IdentityStore
impl Send for IdentityStore
impl Sync for IdentityStore
impl Unpin for IdentityStore
impl UnsafeUnpin for IdentityStore
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