pub struct TursoConfig {
pub max_retries: u32,
pub retry_base_delay_ms: u64,
pub retry_max_delay_ms: u64,
pub enable_pooling: bool,
pub compression_threshold: usize,
pub compress_episodes: bool,
pub compress_patterns: bool,
pub compress_embeddings: bool,
pub compression_level: i32,
pub cache_config: Option<CacheConfig>,
}Expand description
Configuration for Turso storage
Fields§
§max_retries: u32Maximum retry attempts for failed operations
retry_base_delay_ms: u64Base delay for exponential backoff (milliseconds)
retry_max_delay_ms: u64Maximum delay for exponential backoff (milliseconds)
enable_pooling: boolEnable connection pooling
compression_threshold: usizeCompression threshold in bytes (default: 1024 = 1KB) Payloads smaller than this won’t be compressed Only used when compression feature is enabled
compress_episodes: boolEnable compression for episodes (default: true) Only used when compression feature is enabled
compress_patterns: boolEnable compression for patterns (default: true) Only used when compression feature is enabled
compress_embeddings: boolEnable compression for embeddings (default: true) Only used when compression feature is enabled
compression_level: i32Compression level for zstd (1-22, default: 3) 1 = fastest, 22 = best compression Only used when compression feature is enabled
cache_config: Option<CacheConfig>Cache configuration for performance optimization When None, caching is disabled (default: Some(CacheConfig::default()))
Trait Implementations§
Source§impl Clone for TursoConfig
impl Clone for TursoConfig
Source§fn clone(&self) -> TursoConfig
fn clone(&self) -> TursoConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TursoConfig
impl Debug for TursoConfig
Auto Trait Implementations§
impl Freeze for TursoConfig
impl RefUnwindSafe for TursoConfig
impl Send for TursoConfig
impl Sync for TursoConfig
impl Unpin for TursoConfig
impl UnsafeUnpin for TursoConfig
impl UnwindSafe for TursoConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.