pub struct SyncService {
config: Config,
}Expand description
Service for synchronizing memories with remote storage.
Deprecated: With SQLite as authoritative storage, remote sync is no longer
supported. All sync operations return empty stats. Use this service only for
remote context detection.
Fields§
§config: ConfigConfiguration.
Implementations§
Source§impl SyncService
impl SyncService
Sourcepub fn no_op() -> Self
pub fn no_op() -> Self
Creates a no-op sync service for user-scoped storage.
This service does nothing when sync operations are called, returning empty stats.
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Returns whether this service can perform sync operations.
Note: Always returns false since remote sync is no longer supported.
Sourcepub fn fetch(&self) -> Result<SyncStats>
pub fn fetch(&self) -> Result<SyncStats>
Fetches memories from remote.
Note: Returns empty stats since remote sync is no longer supported.
§Errors
This function does not return errors (always succeeds with empty stats).
Sourcepub fn push(&self) -> Result<SyncStats>
pub fn push(&self) -> Result<SyncStats>
Pushes memories to remote.
Note: Returns empty stats since remote sync is no longer supported.
§Errors
This function does not return errors (always succeeds with empty stats).
Sourcepub fn sync(&self) -> Result<SyncStats>
pub fn sync(&self) -> Result<SyncStats>
Performs a full sync (fetch + push).
Note: Returns empty stats since remote sync is no longer supported.
§Errors
This function does not return errors (always succeeds with empty stats).
Sourcepub const fn is_available(&self) -> Result<bool>
pub const fn is_available(&self) -> Result<bool>
Checks if sync is available (remote exists and is reachable).
Note: Always returns false since remote sync is no longer supported.
§Errors
This function does not return errors (always succeeds with false).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncService
impl RefUnwindSafe for SyncService
impl Send for SyncService
impl Sync for SyncService
impl Unpin for SyncService
impl UnwindSafe for SyncService
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].