pub struct MemoryEnrollmentStore { /* private fields */ }Implementations§
Source§impl MemoryEnrollmentStore
impl MemoryEnrollmentStore
pub fn new( records: impl IntoIterator<Item = EnrollmentRecord>, ) -> Result<Self, ServiceError>
Trait Implementations§
Source§impl Default for MemoryEnrollmentStore
impl Default for MemoryEnrollmentStore
Source§impl EnrollmentStore for MemoryEnrollmentStore
impl EnrollmentStore for MemoryEnrollmentStore
fn find<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_did: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<EnrollmentRecord>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
record: EnrollmentRecord,
) -> Pin<Box<dyn Future<Output = Result<EnrollmentRecord, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for MemoryEnrollmentStore
impl RefUnwindSafe for MemoryEnrollmentStore
impl Send for MemoryEnrollmentStore
impl Sync for MemoryEnrollmentStore
impl Unpin for MemoryEnrollmentStore
impl UnsafeUnpin for MemoryEnrollmentStore
impl UnwindSafe for MemoryEnrollmentStore
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