pub enum PrimitivesError {
Bmt(BmtError),
Chunk(ChunkError),
File(FileError),
Store(ChunkStoreError),
Encryption(EncryptionError),
Io(Error),
ArrayConversion(TryFromSliceError),
}Expand description
Main error type for the primitives crate
This enum represents all the possible errors that can occur when using
the nectar-primitives crate. It wraps component-specific errors like
BmtError and ChunkError to provide a unified error interface.
Variants§
Bmt(BmtError)
Errors from BMT operations
Chunk(ChunkError)
Errors from chunk operations
File(FileError)
Errors from file operations
Store(ChunkStoreError)
Errors from chunk store operations
Encryption(EncryptionError)
Errors from encryption operations
Io(Error)
Input/output errors
ArrayConversion(TryFromSliceError)
Array conversion errors
Trait Implementations§
Source§impl Debug for PrimitivesError
impl Debug for PrimitivesError
Source§impl Display for PrimitivesError
impl Display for PrimitivesError
Source§impl Error for PrimitivesError
impl Error for PrimitivesError
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<ChunkStoreError> for PrimitivesError
impl From<ChunkStoreError> for PrimitivesError
Source§fn from(source: ChunkStoreError) -> Self
fn from(source: ChunkStoreError) -> Self
Converts to this type from the input type.
Source§impl From<EncryptionError> for PrimitivesError
impl From<EncryptionError> for PrimitivesError
Source§fn from(source: EncryptionError) -> Self
fn from(source: EncryptionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PrimitivesError
impl From<Error> for PrimitivesError
Source§impl From<FileError> for PrimitivesError
impl From<FileError> for PrimitivesError
Source§impl From<TryFromSliceError> for PrimitivesError
impl From<TryFromSliceError> for PrimitivesError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PrimitivesError
impl !UnwindSafe for PrimitivesError
impl Freeze for PrimitivesError
impl Send for PrimitivesError
impl Sync for PrimitivesError
impl Unpin for PrimitivesError
impl UnsafeUnpin for PrimitivesError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more