Crate launchdarkly_server_sdk

source ·
Expand description

launchdarkly-server-sdk is the main crate for the LaunchDarkly SDK.

This package contains the types and methods for the SDK client Client and its overall configuration.

For more information and code examples, see the Rust SDK Reference: https://docs.launchdarkly.com/sdk/server-side/rust

Structs§

Enums§

  • An attribute value represents possible values that can be stored in a crate::Context.
  • Error type used to represent failures when building a Client instance.
  • Enum which denotes the kind of data that may be persisted in our data stores.
  • Error type used to represent failures when building a DataSource instance.
  • Error is returned via a Reason::Error when the client could not evaluate a flag, and provides information about why the flag could not be evaluated.
  • Error type used to represent failures when building an EventProcessor instance.
  • Error type used to represent failures when building a FeatureRequesterFactory instance.
  • FlagValue represents any of the data types supported by JSON, all of which can be used for a LaunchDarkly feature flag variation or a custom context attribute.
  • Reason describes the reason that a flag evaluation produced a particular value.
  • Error type used to represent failures when starting the Client.
  • Enum to denote whether the item is a valid type T or if it is a tombstone place holder used to show the item T was deleted.

Traits§

  • Trait for the component that buffers analytics events and sends them to LaunchDarkly. This component can be replaced for testing purposes.
  • Trait which allows creation of feature requesters.
  • PersistentDataStore is an interface for a data store that holds feature flags and related data in a serialized form.
  • PersistentDataStoreFactory is an interface for a factory that creates some implementation of a PersistentDataStore.
  • Trait indicating that the item is versioned.

Functions§