pub struct MemoryIdentityBackend { /* private fields */ }Expand description
In-memory identity store (testing only).
Implementations§
Trait Implementations§
Source§impl Default for MemoryIdentityBackend
impl Default for MemoryIdentityBackend
Source§fn default() -> MemoryIdentityBackend
fn default() -> MemoryIdentityBackend
Returns the “default value” for a type. Read more
Source§impl IdentityBackend for MemoryIdentityBackend
impl IdentityBackend for MemoryIdentityBackend
Source§fn store(&self, identity: &ActorIdentity) -> Result<(), IdentityError>
fn store(&self, identity: &ActorIdentity) -> Result<(), IdentityError>
Store an identity.
Source§fn load(&self, actor_id: &str) -> Result<ActorIdentity, IdentityError>
fn load(&self, actor_id: &str) -> Result<ActorIdentity, IdentityError>
Look up an identity by ID.
Auto Trait Implementations§
impl !Freeze for MemoryIdentityBackend
impl RefUnwindSafe for MemoryIdentityBackend
impl Send for MemoryIdentityBackend
impl Sync for MemoryIdentityBackend
impl Unpin for MemoryIdentityBackend
impl UnsafeUnpin for MemoryIdentityBackend
impl UnwindSafe for MemoryIdentityBackend
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