pub struct FederatedStore { /* private fields */ }Expand description
One already verified root-bound read-only store admitted by an adapter.
Implementations§
Source§impl FederatedStore
impl FederatedStore
Sourcepub fn new(
store: AtlasStore,
database_path: PathBuf,
root: PathBuf,
input_work: FederatedInputWork,
) -> ServiceResult<Self>
pub fn new( store: AtlasStore, database_path: PathBuf, root: PathBuf, input_work: FederatedInputWork, ) -> ServiceResult<Self>
Admit one root-bound read-only snapshot into a later federated call.
§Errors
Returns an error when the store is writable, has no active read snapshot, names another root, or its database path is not an existing regular file.
Sourcepub const fn store(&self) -> &AtlasStore
pub const fn store(&self) -> &AtlasStore
Borrow the verified primary store while an adapter constructs exact selectors.
Sourcepub fn finish(self) -> ServiceResult<()>
pub fn finish(self) -> ServiceResult<()>
Close this participant without producing a federated result.
§Errors
Returns an error when SQLite cannot finish the active read snapshot.
Auto Trait Implementations§
impl !Freeze for FederatedStore
impl !RefUnwindSafe for FederatedStore
impl Send for FederatedStore
impl !Sync for FederatedStore
impl Unpin for FederatedStore
impl !UnwindSafe for FederatedStore
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