pub enum CleanError {
Io(Error),
Store(StoreError),
ExtensionMissingCommand {
name: String,
},
ExtensionSpawnFailed {
name: String,
source: Error,
},
ExtensionFailed {
name: String,
status: Option<i32>,
},
}Expand description
Things that can go wrong while running clean.
Variants§
Io(Error)
Filesystem-level failure: reading the input stream, writing the tempfile, etc.
Store(StoreError)
The local LFS store rejected the bytes.
ExtensionMissingCommand
A configured extension was declared with an empty clean
command, so there’s nothing to spawn.
ExtensionSpawnFailed
The extension subprocess couldn’t be started (typically
because the binary isn’t on PATH).
ExtensionFailed
The extension subprocess started but exited non-zero.
Trait Implementations§
Source§impl Debug for CleanError
impl Debug for CleanError
Source§impl Display for CleanError
impl Display for CleanError
Source§impl Error for CleanError
impl Error for CleanError
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()
Source§impl From<Error> for CleanError
impl From<Error> for CleanError
Source§impl From<StoreError> for CleanError
impl From<StoreError> for CleanError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CleanError
impl !RefUnwindSafe for CleanError
impl Send for CleanError
impl Sync for CleanError
impl Unpin for CleanError
impl UnsafeUnpin for CleanError
impl !UnwindSafe for CleanError
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> ErrorExt for T
impl<T> ErrorExt for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.