pub enum BranchError<Storage>{
StorageReader(<Storage as BlobStore<Blake3>>::ReaderError),
StorageGet(<<Storage as BlobStore<Blake3>>::Reader as BlobStoreGet<Blake3>>::GetError<UnarchiveError>),
StoragePut(<Storage as BlobStorePut<Blake3>>::PutError),
BranchHead(Storage::HeadError),
BranchUpdate(Storage::UpdateError),
AlreadyExists(),
BranchNotFound(Id),
}Expand description
Error returned by Repository::create_branch and related methods.
Variants§
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 storing blobs.
BranchHead(Storage::HeadError)
An error occurred while retrieving branch heads.
BranchUpdate(Storage::UpdateError)
An error occurred while updating the branch storage.
AlreadyExists()
The branch already exists.
BranchNotFound(Id)
The referenced base branch does not exist.
Trait Implementations§
Auto Trait Implementations§
impl<Storage> Freeze for BranchError<Storage>where
<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>>::HeadError: Freeze,
<Storage as BranchStore<Hasher>>::UpdateError: Freeze,
impl<Storage> RefUnwindSafe for BranchError<Storage>where
<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>>::HeadError: RefUnwindSafe,
<Storage as BranchStore<Hasher>>::UpdateError: RefUnwindSafe,
impl<Storage> Send for BranchError<Storage>
impl<Storage> Sync for BranchError<Storage>
impl<Storage> Unpin for BranchError<Storage>where
<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>>::HeadError: Unpin,
<Storage as BranchStore<Hasher>>::UpdateError: Unpin,
impl<Storage> UnsafeUnpin for BranchError<Storage>where
<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>>::HeadError: UnsafeUnpin,
<Storage as BranchStore<Hasher>>::UpdateError: UnsafeUnpin,
impl<Storage> UnwindSafe for BranchError<Storage>where
<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>>::HeadError: 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