pub struct ObjectStoreRemote<H> { /* private fields */ }Expand description
Repository backed by an object_store compatible storage backend.
All data is stored in an external service (e.g. S3, local filesystem) via
the object_store crate.
Implementations§
Source§impl<H> ObjectStoreRemote<H>
impl<H> ObjectStoreRemote<H>
Trait Implementations§
Source§impl<H> BlobStore<H> for ObjectStoreRemote<H>where
H: HashProtocol,
impl<H> BlobStore<H> for ObjectStoreRemote<H>where
H: HashProtocol,
Source§type Reader = ObjectStoreReader<H>
type Reader = ObjectStoreReader<H>
A clonable reader handle for concurrent blob lookups.
Source§type ReaderError = Infallible
type ReaderError = Infallible
Error type for creating a reader.
Source§impl<H> BlobStoreForget<H> for ObjectStoreRemote<H>where
H: HashProtocol,
impl<H> BlobStoreForget<H> for ObjectStoreRemote<H>where
H: HashProtocol,
Source§impl<H> BlobStorePut<H> for ObjectStoreRemote<H>where
H: HashProtocol,
impl<H> BlobStorePut<H> for ObjectStoreRemote<H>where
H: HashProtocol,
Source§impl<H> BranchStore<H> for ObjectStoreRemote<H>where
H: HashProtocol,
impl<H> BranchStore<H> for ObjectStoreRemote<H>where
H: HashProtocol,
Source§type BranchesError = ListBranchesErr
type BranchesError = ListBranchesErr
Error type for listing branches.
Source§type HeadError = PullBranchErr
type HeadError = PullBranchErr
Error type for head lookups.
Source§type UpdateError = PushBranchErr
type UpdateError = PushBranchErr
Error type for CAS updates.
Source§type ListIter<'a> = BlockingIter<Result<Id, <ObjectStoreRemote<H> as BranchStore<H>>::BranchesError>>
type ListIter<'a> = BlockingIter<Result<Id, <ObjectStoreRemote<H> as BranchStore<H>>::BranchesError>>
Iterator over branch IDs.
Source§fn branches<'a>(&'a mut self) -> Result<Self::ListIter<'a>, Self::BranchesError>
fn branches<'a>(&'a mut self) -> Result<Self::ListIter<'a>, Self::BranchesError>
Lists all branches in the repository.
This function returns a stream of branch ids.
Source§fn head(
&mut self,
id: Id,
) -> Result<Option<Value<Handle<H, SimpleArchive>>>, Self::HeadError>
fn head( &mut self, id: Id, ) -> Result<Option<Value<Handle<H, SimpleArchive>>>, Self::HeadError>
Retrieves a branch from the repository by its id.
The id is a unique identifier for the branch, and is used to retrieve it from the repository. Read more
Source§fn update(
&mut self,
id: Id,
old: Option<Value<Handle<H, SimpleArchive>>>,
new: Option<Value<Handle<H, SimpleArchive>>>,
) -> Result<PushResult<H>, Self::UpdateError>
fn update( &mut self, id: Id, old: Option<Value<Handle<H, SimpleArchive>>>, new: Option<Value<Handle<H, SimpleArchive>>>, ) -> Result<PushResult<H>, Self::UpdateError>
Puts a branch on the repository, creating or updating it. Read more
Source§impl<H> Debug for ObjectStoreRemote<H>
impl<H> Debug for ObjectStoreRemote<H>
Source§impl<H> StorageClose for ObjectStoreRemote<H>
impl<H> StorageClose for ObjectStoreRemote<H>
Auto Trait Implementations§
impl<H> Freeze for ObjectStoreRemote<H>
impl<H> !RefUnwindSafe for ObjectStoreRemote<H>
impl<H> Send for ObjectStoreRemote<H>where
H: Send,
impl<H> Sync for ObjectStoreRemote<H>where
H: Sync,
impl<H> Unpin for ObjectStoreRemote<H>where
H: Unpin,
impl<H> UnsafeUnpin for ObjectStoreRemote<H>
impl<H> !UnwindSafe for ObjectStoreRemote<H>
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
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>
Converts
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>
Converts
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