pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn new_in_memory(pepper: [u8; 32], max_nodes: usize) -> Self
pub fn pepper(&self) -> [u8; 32]
pub async fn register(&self, identity: PublicIdentity) -> RegistryResult<()>
pub async fn resolve( &self, user_id: &UserId, ) -> RegistryResult<Option<PublicIdentity>>
pub async fn check_user(&self, user_id: &UserId) -> RegistryResult<bool>
pub async fn announce(&self, presence: Presence) -> RegistryResult<()>
pub async fn sync_identities( &self, identities: Vec<PublicIdentity>, ) -> RegistryResult<usize>
pub async fn list_nodes(&self) -> RegistryResult<Vec<NodeInfo>>
pub async fn add_nodes(&self, nodes: Vec<NodeInfo>) -> RegistryResult<usize>
pub async fn purge_presences( &self, now_ms: u64, ttl_secs: u64, ) -> RegistryResult<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl !RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl !UnwindSafe for Store
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