pub enum LookupError<Storage>{
StorageBranches(Storage::BranchesError),
BranchHead(Storage::HeadError),
StorageReader(<Storage as BlobStore<Blake3>>::ReaderError),
StorageGet(<<Storage as BlobStore<Blake3>>::Reader as BlobStoreGet<Blake3>>::GetError<UnarchiveError>),
NameConflict(Vec<Id>),
BadBranchMetadata(),
}Expand description
Error returned by Repository::lookup_branch.
Variants§
StorageBranches(Storage::BranchesError)
Failed to enumerate branches.
BranchHead(Storage::HeadError)
Failed to read a branch head.
StorageReader(<Storage as BlobStore<Blake3>>::ReaderError)
Failed to create a blob reader.
StorageGet(<<Storage as BlobStore<Blake3>>::Reader as BlobStoreGet<Blake3>>::GetError<UnarchiveError>)
Failed to read a metadata blob.
NameConflict(Vec<Id>)
Multiple branches were found with the given name.
BadBranchMetadata()
Branch metadata is malformed.
Trait Implementations§
Auto Trait Implementations§
impl<Storage> Freeze for LookupError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: Freeze,
<Storage as BranchStore<Hasher>>::HeadError: Freeze,
<Storage as BlobStore<Hasher>>::ReaderError: Freeze,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: Freeze,
impl<Storage> RefUnwindSafe for LookupError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: RefUnwindSafe,
<Storage as BranchStore<Hasher>>::HeadError: RefUnwindSafe,
<Storage as BlobStore<Hasher>>::ReaderError: RefUnwindSafe,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: RefUnwindSafe,
impl<Storage> Send for LookupError<Storage>
impl<Storage> Sync for LookupError<Storage>
impl<Storage> Unpin for LookupError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: Unpin,
<Storage as BranchStore<Hasher>>::HeadError: Unpin,
<Storage as BlobStore<Hasher>>::ReaderError: Unpin,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: Unpin,
impl<Storage> UnsafeUnpin for LookupError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: UnsafeUnpin,
<Storage as BranchStore<Hasher>>::HeadError: UnsafeUnpin,
<Storage as BlobStore<Hasher>>::ReaderError: UnsafeUnpin,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: UnsafeUnpin,
impl<Storage> UnwindSafe for LookupError<Storage>where
<Storage as BranchStore<Hasher>>::BranchesError: UnwindSafe,
<Storage as BranchStore<Hasher>>::HeadError: UnwindSafe,
<Storage as BlobStore<Hasher>>::ReaderError: UnwindSafe,
<<Storage as BlobStore<Hasher>>::Reader as BlobStoreGet<Hasher>>::GetError<UnarchiveError>: 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