#[non_exhaustive]pub enum MissingObjectReason {
Promised,
NotPromised,
NoFetcher,
LazyFetchFailed,
}Expand description
Why a missing object could not be served; see ServeError::ObjectMissing.
A repository whose large blobs live on a large-object promisor (LOP) leaves
them out of its own packs. Such a blob is promised: some object in a promisor
pack refers to it. A client that accepted one of the advertised promisor
remotes is sent the pack without it and fetches it from the LOP itself; any
other client needs the server to fetch it first (lazy fetch, see
ServeOptions::lazy_fetch) or gets this error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Promised
The object can be fetched from a promisor remote, but the client accepted none of them and lazy fetch is off.
NotPromised
No promisor object refers to it: the repository is missing an object it should have.
NoFetcher
Lazy fetch was requested, but the Repository was opened without a
PromisorFetcher.
LazyFetchFailed
Lazy fetch ran and the object is still not stored.
Trait Implementations§
Source§impl Clone for MissingObjectReason
impl Clone for MissingObjectReason
impl Copy for MissingObjectReason
Source§impl Debug for MissingObjectReason
impl Debug for MissingObjectReason
Source§impl Display for MissingObjectReason
impl Display for MissingObjectReason
impl Eq for MissingObjectReason
Source§impl Error for MissingObjectReason
impl Error for MissingObjectReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for MissingObjectReason
impl PartialEq for MissingObjectReason
impl StructuralPartialEq for MissingObjectReason
Auto Trait Implementations§
impl Freeze for MissingObjectReason
impl RefUnwindSafe for MissingObjectReason
impl Send for MissingObjectReason
impl Sync for MissingObjectReason
impl Unpin for MissingObjectReason
impl UnsafeUnpin for MissingObjectReason
impl UnwindSafe for MissingObjectReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.