#[non_exhaustive]pub enum UnpackError {
Truncated,
TooLarge {
limit: u64,
},
Malformed(PackStreamScanError),
Ingest(Box<Error>),
Io(Error),
}Expand description
Why a pushed pack could not be stored.
The Display text is sent to the client on the
unpack <reason> status line. Every requested update is then refused with
RefUpdateRefusal::UnpackerError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Truncated
The client stopped sending before the pack was complete.
TooLarge
The pack is larger than receive.maxInputSize.
Malformed(PackStreamScanError)
The stream is not a well-formed pack.
Ingest(Box<Error>)
The pack arrived but its objects could not be stored (bad checksum, corrupt object, failed connectivity check, …).
Io(Error)
Reading the client stream or writing the spooled pack failed.
Trait Implementations§
Source§impl Debug for UnpackError
impl Debug for UnpackError
Source§impl Display for UnpackError
impl Display for UnpackError
Source§impl Error for UnpackError
impl Error for UnpackError
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 UnpackError
impl From<Error> for UnpackError
Source§impl From<Error> for UnpackError
impl From<Error> for UnpackError
Source§impl From<PackStreamScanError> for UnpackError
impl From<PackStreamScanError> for UnpackError
Source§fn from(source: PackStreamScanError) -> Self
fn from(source: PackStreamScanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UnpackError
impl !UnwindSafe for UnpackError
impl Freeze for UnpackError
impl Send for UnpackError
impl Sync for UnpackError
impl Unpin for UnpackError
impl UnsafeUnpin for UnpackError
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