pub enum RecordSourceError {
Cipher(Box<HaysonCipherError>),
Io(Error),
}Expand description
What a RecordSource can fail with. Its own type rather than io::Error so a failed decrypt
keeps the whole HaysonCipherError — key id included — on the way out of the read path;
TableError cannot be used here because it lives above query/ in the layering.
Variants§
Cipher(Box<HaysonCipherError>)
Boxed for the same reason as TableError::Cipher — only a cypher field ever builds one.
Io(Error)
Trait Implementations§
Source§impl Debug for RecordSourceError
impl Debug for RecordSourceError
Source§impl Display for RecordSourceError
impl Display for RecordSourceError
Source§impl Error for RecordSourceError
impl Error for RecordSourceError
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<Error> for RecordSourceError
impl From<Error> for RecordSourceError
Source§impl From<HaysonCipherError> for RecordSourceError
impl From<HaysonCipherError> for RecordSourceError
Source§fn from(value: HaysonCipherError) -> Self
fn from(value: HaysonCipherError) -> Self
Converts to this type from the input type.
Source§impl From<RecordSourceError> for TableError
impl From<RecordSourceError> for TableError
Source§fn from(value: RecordSourceError) -> Self
fn from(value: RecordSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RecordSourceError
impl !UnwindSafe for RecordSourceError
impl Freeze for RecordSourceError
impl Send for RecordSourceError
impl Sync for RecordSourceError
impl Unpin for RecordSourceError
impl UnsafeUnpin for RecordSourceError
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