pub struct ObjectStoreRemote { /* 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§
Trait Implementations§
Source§impl BlobStore for ObjectStoreRemote
impl BlobStore for ObjectStoreRemote
Source§type Reader = ObjectStoreReader
type Reader = ObjectStoreReader
A clonable reader handle for concurrent blob lookups.
Source§type ReaderError = Infallible
type ReaderError = Infallible
Error type for creating a reader.
Source§impl BlobStoreForget for ObjectStoreRemote
impl BlobStoreForget for ObjectStoreRemote
Source§impl BlobStorePut for ObjectStoreRemote
impl BlobStorePut for ObjectStoreRemote
Source§impl Debug for ObjectStoreRemote
impl Debug for ObjectStoreRemote
Source§impl PinStore for ObjectStoreRemote
impl PinStore for ObjectStoreRemote
Source§type PinsError = ListBranchesErr
type PinsError = ListBranchesErr
Error type for listing pins.
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 as PinStore>::PinsError>>
type ListIter<'a> = BlockingIter<Result<Id, <ObjectStoreRemote as PinStore>::PinsError>>
Iterator over pin IDs.
Source§fn pins<'a>(&'a mut self) -> Result<Self::ListIter<'a>, Self::PinsError>
fn pins<'a>(&'a mut self) -> Result<Self::ListIter<'a>, Self::PinsError>
Lists every pin in the store. Returns a fallible iterator over
pin ids (any role — branches, tracking pins, local-only pins).
Callers that want only content branches filter by checking for
the
metadata::name attribute on each pin’s head metadata.Source§fn head(
&mut self,
id: Id,
) -> Result<Option<Inline<Handle<SimpleArchive>>>, Self::HeadError>
fn head( &mut self, id: Id, ) -> Result<Option<Inline<Handle<SimpleArchive>>>, Self::HeadError>
Retrieves the current head of a pin by its id. Read more
Source§fn update(
&mut self,
id: Id,
old: Option<Inline<Handle<SimpleArchive>>>,
new: Option<Inline<Handle<SimpleArchive>>>,
) -> Result<PushResult, Self::UpdateError>
fn update( &mut self, id: Id, old: Option<Inline<Handle<SimpleArchive>>>, new: Option<Inline<Handle<SimpleArchive>>>, ) -> Result<PushResult, Self::UpdateError>
Compare-and-swap update of a pin’s head. Read more
Source§fn pin_snapshot(&mut self) -> Result<PinSnapshot, Self::PinsError>
fn pin_snapshot(&mut self) -> Result<PinSnapshot, Self::PinsError>
Cheap point-in-time snapshot of the (pin id → head) map. Read more
Source§impl StorageClose for ObjectStoreRemote
impl StorageClose for ObjectStoreRemote
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectStoreRemote
impl !UnwindSafe for ObjectStoreRemote
impl Freeze for ObjectStoreRemote
impl Send for ObjectStoreRemote
impl Sync for ObjectStoreRemote
impl Unpin for ObjectStoreRemote
impl UnsafeUnpin for ObjectStoreRemote
Blanket Implementations§
impl<T> ArchiveOwner for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
Source§fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
Run the conversion.