pub struct DatabaseCache { /* private fields */ }
Implementations§
source§impl DatabaseCache
impl DatabaseCache
pub fn commit_and_update( &self, db: &Database, writer: Writer<'_>, coenrolling_ids: &HashSet<&str>, ) -> Result<()>
pub fn get_experiment_branch(&self, id: &str) -> Result<Option<String>>
pub fn get_feature_config_variables( &self, feature_id: &str, ) -> Result<Option<String>>
pub fn get_enrollment_by_feature( &self, feature_id: &str, ) -> Result<Option<EnrolledFeature>>
pub fn get_active_experiments(&self) -> Result<Vec<EnrolledExperiment>>
pub fn get_experiments(&self) -> Result<Vec<Experiment>>
pub fn get_enrollments(&self) -> Result<Vec<ExperimentEnrollment>>
Trait Implementations§
source§impl Default for DatabaseCache
impl Default for DatabaseCache
source§fn default() -> DatabaseCache
fn default() -> DatabaseCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DatabaseCache
impl RefUnwindSafe for DatabaseCache
impl Send for DatabaseCache
impl Sync for DatabaseCache
impl Unpin for DatabaseCache
impl UnwindSafe for DatabaseCache
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more