pub enum SegmentIoError {
MissingFile {
path: String,
backtrace: Backtrace,
},
Storage {
path: String,
source: StorageError,
},
}Expand description
IO-layer errors when constructing/validating segments.
Variants§
MissingFile
The file is missing or not a regular file.
Fields
Storage
Generic I/O error while validating the segment.
Fields
§
source: StorageErrorUnderlying storage error that caused this I/O failure.
Trait Implementations§
Source§impl Debug for SegmentIoError
impl Debug for SegmentIoError
Source§impl Display for SegmentIoError
impl Display for SegmentIoError
Source§impl Error for SegmentIoError
impl Error for SegmentIoError
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 ErrorCompat for SegmentIoError
impl ErrorCompat for SegmentIoError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<SegmentIoError> for SegmentError
impl From<SegmentIoError> for SegmentError
Source§fn from(error: SegmentIoError) -> Self
fn from(error: SegmentIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SegmentIoError
impl !RefUnwindSafe for SegmentIoError
impl !UnwindSafe for SegmentIoError
impl Send for SegmentIoError
impl Sync for SegmentIoError
impl Unpin for SegmentIoError
impl UnsafeUnpin for SegmentIoError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
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