#[non_exhaustive]pub enum ContainerInfoError {
ChapterIndexOutOfRange {
index: usize,
count: usize,
},
StreamIndexOutOfRange {
index: usize,
count: usize,
},
}Expand description
Errors from the container_info queries where the caller asked for an index
outside the container’s range. These are caller/argument errors — a bad index
into an otherwise valid container — kept distinct from an open/probe failure
(OpenInputError / FindStreamError) so retry logic, telemetry, and user
messages can tell “you asked for chapter 5 of a 3-chapter file” apart from
“the file is corrupt or unreadable”. Each variant carries the offending
index and the container’s actual count.
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.
Trait Implementations§
Source§impl Debug for ContainerInfoError
impl Debug for ContainerInfoError
Source§impl Display for ContainerInfoError
impl Display for ContainerInfoError
Source§impl Error for ContainerInfoError
impl Error for ContainerInfoError
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()
Source§impl From<ContainerInfoError> for Error
impl From<ContainerInfoError> for Error
Source§fn from(source: ContainerInfoError) -> Self
fn from(source: ContainerInfoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContainerInfoError
impl RefUnwindSafe for ContainerInfoError
impl Send for ContainerInfoError
impl Sync for ContainerInfoError
impl Unpin for ContainerInfoError
impl UnsafeUnpin for ContainerInfoError
impl UnwindSafe for ContainerInfoError
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