pub struct ProviderCache { /* private fields */ }Implementations§
Source§impl ProviderCache
impl ProviderCache
pub fn new() -> Arc<Self>
pub fn init_config( &self, default_config: HashMap<String, String>, contexts: Vec<Context>, overrides: HashMap<String, Overrides>, dimensions: HashMap<String, DimensionInfo>, ) -> Result<(), OperationError>
pub fn init_experiments( &self, experiments: Vec<FfiExperiment>, experiment_groups: Vec<FfiExperimentGroup>, ) -> Result<(), OperationError>
pub fn eval_config( &self, query_data: HashMap<String, String>, merge_strategy: MergeStrategy, filter_prefixes: Option<Vec<String>>, targeting_key: Option<String>, ) -> Result<HashMap<String, String>, OperationError>
Trait Implementations§
Source§impl Default for ProviderCache
impl Default for ProviderCache
Source§fn default() -> ProviderCache
fn default() -> ProviderCache
Returns the “default value” for a type. Read more
Source§impl Drop for ProviderCache
impl Drop for ProviderCache
Source§impl<UT> LiftRef<UT> for ProviderCache
impl<UT> LiftRef<UT> for ProviderCache
type LiftType = Arc<ProviderCache>
Source§impl<UT> LowerError<UT> for ProviderCache
impl<UT> LowerError<UT> for ProviderCache
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for ProviderCache
impl<UT> LowerReturn<UT> for ProviderCache
Source§type ReturnType = <Arc<ProviderCache> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<ProviderCache> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for ProviderCache
impl<UT> TypeId<UT> for ProviderCache
Auto Trait Implementations§
impl !Freeze for ProviderCache
impl RefUnwindSafe for ProviderCache
impl Send for ProviderCache
impl Sync for ProviderCache
impl Unpin for ProviderCache
impl UnsafeUnpin for ProviderCache
impl UnwindSafe for ProviderCache
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
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more