pub enum GenerateError {
ComputeChecksum(ChecksumComputeError),
FileHasNoName,
OpenChecksumFile(ErrorKind),
CopyToPayloadFolder(ErrorKind),
StripPrefixPath(StripPrefixError),
Finalize(ErrorKind),
Payload(PayloadError),
}Expand description
Possible errors when creating bagit containers
Variants§
ComputeChecksum(ChecksumComputeError)
FileHasNoName
This should not be possible, but file does not have a name
OpenChecksumFile(ErrorKind)
Failed to create directory on filesystem
CopyToPayloadFolder(ErrorKind)
Failed to read file and/or create file on filesystem
StripPrefixPath(StripPrefixError)
Failed to compute relative path of newly copied payload
Finalize(ErrorKind)
Failed to finalize bag: usually IO
Payload(PayloadError)
Payload related error
Trait Implementations§
Source§impl Debug for GenerateError
impl Debug for GenerateError
Source§impl Display for GenerateError
impl Display for GenerateError
Source§impl Error for GenerateError
impl Error for GenerateError
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<ChecksumComputeError> for GenerateError
impl From<ChecksumComputeError> for GenerateError
Source§fn from(source: ChecksumComputeError) -> Self
fn from(source: ChecksumComputeError) -> Self
Converts to this type from the input type.
Source§impl From<PayloadError> for GenerateError
impl From<PayloadError> for GenerateError
Source§fn from(source: PayloadError) -> Self
fn from(source: PayloadError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for GenerateError
impl From<StripPrefixError> for GenerateError
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GenerateError
impl PartialEq for GenerateError
impl StructuralPartialEq for GenerateError
Auto Trait Implementations§
impl Freeze for GenerateError
impl RefUnwindSafe for GenerateError
impl Send for GenerateError
impl Sync for GenerateError
impl Unpin for GenerateError
impl UnwindSafe for GenerateError
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