pub enum GenericSessionRepository {
InMemory(Arc<RwLock<HashMap<Endpoint, ()>>>),
JsSessionRepository(Arc<JsSessionRepository>),
}Variants§
Trait Implementations§
Source§impl SessionRepository<()> for GenericSessionRepository
impl SessionRepository<()> for GenericSessionRepository
type GetError = String
type SaveError = String
type RemoveError = String
async fn get(&self, endpoint: Endpoint) -> Result<Option<()>, Self::GetError>
async fn save( &self, endpoint: Endpoint, session: (), ) -> Result<(), Self::SaveError>
async fn remove(&self, endpoint: Endpoint) -> Result<(), Self::RemoveError>
Auto Trait Implementations§
impl Freeze for GenericSessionRepository
impl !RefUnwindSafe for GenericSessionRepository
impl Send for GenericSessionRepository
impl Sync for GenericSessionRepository
impl Unpin for GenericSessionRepository
impl UnsafeUnpin for GenericSessionRepository
impl !UnwindSafe for GenericSessionRepository
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