pub enum FileReadRefusal {
Missing {
rev: String,
path: String,
},
Unreadable {
rev: String,
path: String,
why: String,
},
}Expand description
Why a file’s content could not be read at a revision, per child:
- The revision gate answers
Self::Missingwhenrevnames no commit. - The type and size probes answer
Self::Missingwhen their child fails - git refuses a revision or a path it does not carry the same way it refuses a protocol problem, and neither probe can tell those apart - and when the path is not a BLOB (a gitlink or a tree is not a file, andgit showformats one as something whose size is not its content’s). - The content read answers
Self::Unreadablewhen its child could not start, the budget cut it off, or it exited non-zero.
Variants§
Trait Implementations§
Source§impl Debug for FileReadRefusal
impl Debug for FileReadRefusal
Source§impl Display for FileReadRefusal
impl Display for FileReadRefusal
Source§impl Error for FileReadRefusal
impl Error for FileReadRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FileReadRefusal
impl RefUnwindSafe for FileReadRefusal
impl Send for FileReadRefusal
impl Sync for FileReadRefusal
impl Unpin for FileReadRefusal
impl UnsafeUnpin for FileReadRefusal
impl UnwindSafe for FileReadRefusal
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync 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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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