pub struct JsonFileClientStore { /* private fields */ }Expand description
JSON-file-backed ClientStore.
Trait Implementations§
Source§impl ClientStore for JsonFileClientStore
impl ClientStore for JsonFileClientStore
Source§async fn register_client(
&self,
id: String,
client: RegisteredClient,
) -> Result<(), StoreError>
async fn register_client( &self, id: String, client: RegisteredClient, ) -> Result<(), StoreError>
Register a new dynamic client.
Source§async fn try_register_client(
&self,
id: String,
client: RegisteredClient,
) -> Result<bool, StoreError>
async fn try_register_client( &self, id: String, client: RegisteredClient, ) -> Result<bool, StoreError>
Atomically register a client if the store is under its configured
client cap. Read more
Source§async fn get_client(
&self,
id: &str,
) -> Result<Option<RegisteredClient>, StoreError>
async fn get_client( &self, id: &str, ) -> Result<Option<RegisteredClient>, StoreError>
Look up a registered client by ID.
Source§async fn client_count(&self) -> Result<usize, StoreError>
async fn client_count(&self) -> Result<usize, StoreError>
Return the number of registered clients.
Auto Trait Implementations§
impl Freeze for JsonFileClientStore
impl !RefUnwindSafe for JsonFileClientStore
impl Send for JsonFileClientStore
impl Sync for JsonFileClientStore
impl Unpin for JsonFileClientStore
impl UnsafeUnpin for JsonFileClientStore
impl !UnwindSafe for JsonFileClientStore
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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