pub enum DiscoveredStoreSpec {
Filesystem {
root: PathBuf,
},
}Expand description
A read-only storage-service connection advertised by a transactor.
This is the single protobuf-to-store mapping used by peers, backups, and
language facades. Local paths are resolved to the concrete store root here
so the {data_dir}/store convention cannot drift between clients.
Variants§
Filesystem
Filesystem blobs and roots under an existing store root.
Implementations§
Source§impl DiscoveredStoreSpec
impl DiscoveredStoreSpec
Sourcepub fn from_connection(
connection: StorageConnection,
) -> Result<Self, StorageConnectionError>
pub fn from_connection( connection: StorageConnection, ) -> Result<Self, StorageConnectionError>
Decodes storage information returned by GetStorageInfo.
§Errors
Returns an error for a missing or process-local memory backend, missing read-only credentials, or a backend omitted from this build.
Sourcepub async fn open_existing(self) -> Result<DiscoveredStore, StoreError>
pub async fn open_existing(self) -> Result<DiscoveredStore, StoreError>
Opens the advertised store without creating storage or schema.
§Errors
Returns StoreError::UnreachableLocalStorage before opening a
filesystem or Turso path that does not already exist. Other errors
report connection, credential, or backend failures.
Trait Implementations§
Source§impl Clone for DiscoveredStoreSpec
impl Clone for DiscoveredStoreSpec
Source§fn clone(&self) -> DiscoveredStoreSpec
fn clone(&self) -> DiscoveredStoreSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredStoreSpec
impl RefUnwindSafe for DiscoveredStoreSpec
impl Send for DiscoveredStoreSpec
impl Sync for DiscoveredStoreSpec
impl Unpin for DiscoveredStoreSpec
impl UnsafeUnpin for DiscoveredStoreSpec
impl UnwindSafe for DiscoveredStoreSpec
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> 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::Request