#[non_exhaustive]pub enum HyperbeeError {
Show 16 variants
HypercoreError(HypercoreError),
DecodeError(DecodeError),
NoBlockAtSeqError(u64),
TreeBuilderError(TreeBuilderError),
BlocksBuilderError(BlocksBuilderError),
HyperbeeBuilderError(HyperbeeBuilderError),
U64ToUsizeConversionError(u64, TryFromIntError),
GetChildInTraverseError(Box<dyn Error + Send + Sync>),
TraverseConfigBuilderError(TraverseConfigBuilderError),
BuildIteratorInTraverseError(Box<dyn Error + Send + Sync>),
YoloIndexEncodingError(EncodeError),
HeaderEncodingError(EncodeError),
NodeEncodingError(EncodeError),
KeyFromUtf8Error(FromUtf8Error),
NoRootError,
HeaderAlreadyExists,
}Expand description
Error type used by all Results in this library.
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.
HypercoreError(HypercoreError)
DecodeError(DecodeError)
NoBlockAtSeqError(u64)
TreeBuilderError(TreeBuilderError)
BlocksBuilderError(BlocksBuilderError)
HyperbeeBuilderError(HyperbeeBuilderError)
U64ToUsizeConversionError(u64, TryFromIntError)
GetChildInTraverseError(Box<dyn Error + Send + Sync>)
TraverseConfigBuilderError(TraverseConfigBuilderError)
BuildIteratorInTraverseError(Box<dyn Error + Send + Sync>)
YoloIndexEncodingError(EncodeError)
HeaderEncodingError(EncodeError)
NodeEncodingError(EncodeError)
KeyFromUtf8Error(FromUtf8Error)
NoRootError
HeaderAlreadyExists
Trait Implementations§
Source§impl<UT> ConvertError<UT> for HyperbeeError
impl<UT> ConvertError<UT> for HyperbeeError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for HyperbeeError
impl Debug for HyperbeeError
Source§impl Display for HyperbeeError
impl Display for HyperbeeError
Source§impl Error for HyperbeeError
impl Error for HyperbeeError
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<DecodeError> for HyperbeeError
impl From<DecodeError> for HyperbeeError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for HyperbeeError
impl From<FromUtf8Error> for HyperbeeError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<HypercoreError> for HyperbeeError
impl From<HypercoreError> for HyperbeeError
Source§fn from(source: HypercoreError) -> Self
fn from(source: HypercoreError) -> Self
Converts to this type from the input type.
Source§impl From<TraverseConfigBuilderError> for HyperbeeError
impl From<TraverseConfigBuilderError> for HyperbeeError
Source§fn from(source: TraverseConfigBuilderError) -> Self
fn from(source: TraverseConfigBuilderError) -> Self
Converts to this type from the input type.
Source§impl<T> Lift<T> for HyperbeeError
impl<T> Lift<T> for HyperbeeError
const TYPE_ID_META: MetadataBuffer
type FfiType = RustBuffer
fn try_read(buf: &mut &[u8]) -> Result<Self>
fn try_lift(v: RustBuffer) -> Result<Self>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<T> Lower<T> for HyperbeeError
impl<T> Lower<T> for HyperbeeError
const TYPE_ID_META: MetadataBuffer
type FfiType = RustBuffer
fn write(obj: Self, buf: &mut Vec<u8>)
fn lower(obj: Self) -> RustBuffer
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Auto Trait Implementations§
impl Freeze for HyperbeeError
impl !RefUnwindSafe for HyperbeeError
impl Send for HyperbeeError
impl Sync for HyperbeeError
impl Unpin for HyperbeeError
impl !UnwindSafe for HyperbeeError
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
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read more