Enum tensorflow::io::RecordReadError
source · pub enum RecordReadError {
CorruptRecord,
CorruptFile,
IoError {
source: Error,
},
BufferTooShort {
needed: u64,
},
}
Expand description
The possible errors from a record read attempt
Variants§
CorruptRecord
This record is corrupt (failed a checksum), but we might be able to recover. A subsequent call to read_next() might yield the next record.
CorruptFile
The entire file is corrupted. This is a terminal error.
IoError
There was an underlying io error. Depending on the source of the error, this may be a a transient or permanent failure.
BufferTooShort
The supplied buffer was too short to contain the next record.
Trait Implementations§
source§impl Debug for RecordReadError
impl Debug for RecordReadError
source§impl Display for RecordReadError
impl Display for RecordReadError
source§impl Error for RecordReadError
impl Error for RecordReadError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RecordReadError
impl From<Error> for RecordReadError
source§fn from(from: Error) -> RecordReadError
fn from(from: Error) -> RecordReadError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RecordReadError
impl Send for RecordReadError
impl Sync for RecordReadError
impl Unpin for RecordReadError
impl !UnwindSafe for RecordReadError
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