pub enum TreeStreamError {
Invalid(TreeError),
UnsupportedVersion {
found: u8,
},
CursorMismatch(String),
TruncatedFrame {
offset: u64,
},
TrailingBytes {
extra: u64,
},
UnexpectedEof {
expected: u64,
decoded: u64,
},
OversizedEntry {
decoded_bytes: usize,
max_decoded_bytes: usize,
},
InvalidPageLimits,
UnverifiedRange,
Malformed(String),
Io(Error),
HashMismatch {
expected: ContentHash,
found: ContentHash,
},
}Expand description
Failure while streaming or range-resuming a canonical tree.
Variants§
Invalid(TreeError)
UnsupportedVersion
CursorMismatch(String)
TruncatedFrame
TrailingBytes
UnexpectedEof
OversizedEntry
InvalidPageLimits
UnverifiedRange
Malformed(String)
Io(Error)
HashMismatch
Trait Implementations§
Source§impl Debug for TreeStreamError
impl Debug for TreeStreamError
Source§impl Display for TreeStreamError
impl Display for TreeStreamError
Source§impl Error for TreeStreamError
impl Error for TreeStreamError
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 TreeStreamError
impl From<Error> for TreeStreamError
Source§fn from(source: Error) -> TreeStreamError
fn from(source: Error) -> TreeStreamError
Converts to this type from the input type.
Source§impl From<TreeError> for TreeStreamError
impl From<TreeError> for TreeStreamError
Source§fn from(source: TreeError) -> TreeStreamError
fn from(source: TreeError) -> TreeStreamError
Converts to this type from the input type.
Source§impl From<TreeStreamError> for HeddleError
impl From<TreeStreamError> for HeddleError
Source§fn from(error: TreeStreamError) -> HeddleError
fn from(error: TreeStreamError) -> HeddleError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TreeStreamError
impl !UnwindSafe for TreeStreamError
impl Freeze for TreeStreamError
impl Send for TreeStreamError
impl Sync for TreeStreamError
impl Unpin for TreeStreamError
impl UnsafeUnpin for TreeStreamError
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