pub enum PushError<Storage: BranchStore<Blake3> + BlobStore<Blake3>> {
StorageBranches(Storage::BranchesError),
StorageReader(<Storage as BlobStore<Blake3>>::ReaderError),
StorageGet(<<Storage as BlobStore<Blake3>>::Reader as BlobStoreGet<Blake3>>::GetError<UnarchiveError>),
StoragePut(<Storage as BlobStorePut<Blake3>>::PutError),
BranchUpdate(Storage::UpdateError),
BadBranchMetadata(),
MergeError(MergeError),
}Expand description
Error returned by Repository::push and Repository::try_push.
Variants§
StorageBranches(Storage::BranchesError)
An error occurred while enumerating the branch storage branches.
StorageReader(<Storage as BlobStore<Blake3>>::ReaderError)
An error occurred while creating a blob reader.
StorageGet(<<Storage as BlobStore<Blake3>>::Reader as BlobStoreGet<Blake3>>::GetError<UnarchiveError>)
An error occurred while reading metadata blobs.
StoragePut(<Storage as BlobStorePut<Blake3>>::PutError)
An error occurred while transferring blobs to the repository.
BranchUpdate(Storage::UpdateError)
An error occurred while updating the branch storage.
BadBranchMetadata()
Malformed branch metadata.
MergeError(MergeError)
Merge failed while retrying a push.
Trait Implementations§
Source§impl<Storage> From<MergeError> for PushError<Storage>
impl<Storage> From<MergeError> for PushError<Storage>
Source§fn from(e: MergeError) -> Self
fn from(e: MergeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Storage> Freeze for PushError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: Freeze,
<Storage as BlobStore<Hasher>>::ReaderError: Freeze,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: Freeze,
<Storage as BlobStorePut<Hasher>>::PutError: Freeze,
<Storage as BranchStore<Hasher>>::UpdateError: Freeze,
impl<Storage> RefUnwindSafe for PushError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: RefUnwindSafe,
<Storage as BlobStore<Hasher>>::ReaderError: RefUnwindSafe,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: RefUnwindSafe,
<Storage as BlobStorePut<Hasher>>::PutError: RefUnwindSafe,
<Storage as BranchStore<Hasher>>::UpdateError: RefUnwindSafe,
impl<Storage> Send for PushError<Storage>where
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: Send,
impl<Storage> Sync for PushError<Storage>where
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: Sync,
impl<Storage> Unpin for PushError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: Unpin,
<Storage as BlobStore<Hasher>>::ReaderError: Unpin,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: Unpin,
<Storage as BlobStorePut<Hasher>>::PutError: Unpin,
<Storage as BranchStore<Hasher>>::UpdateError: Unpin,
impl<Storage> UnsafeUnpin for PushError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: UnsafeUnpin,
<Storage as BlobStore<Hasher>>::ReaderError: UnsafeUnpin,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: UnsafeUnpin,
<Storage as BlobStorePut<Hasher>>::PutError: UnsafeUnpin,
<Storage as BranchStore<Hasher>>::UpdateError: UnsafeUnpin,
impl<Storage> UnwindSafe for PushError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: UnwindSafe,
<Storage as BlobStore<Hasher>>::ReaderError: UnwindSafe,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: UnwindSafe,
<Storage as BlobStorePut<Hasher>>::PutError: UnwindSafe,
<Storage as BranchStore<Hasher>>::UpdateError: UnwindSafe,
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