Enum ps_datachunk::error::PsDataChunkError
source · pub enum PsDataChunkError {
PsCypherError(PsCypherError),
HashConversionError,
SerializationError,
DeserializationError,
InvalidDataChunk,
InvalidChecksum,
ShouldNotHaveFailed(&'static str),
}
Variants§
PsCypherError(PsCypherError)
HashConversionError
SerializationError
DeserializationError
InvalidDataChunk
InvalidChecksum
ShouldNotHaveFailed(&'static str)
Implementations§
source§impl PsDataChunkError
impl PsDataChunkError
pub fn map_option<T>( item: Option<T>, error: PsDataChunkError, ) -> Result<T, Self>
pub fn map_result<T, E>( item: Result<T, E>, error: PsDataChunkError, ) -> Result<T, Self>
Trait Implementations§
source§impl Clone for PsDataChunkError
impl Clone for PsDataChunkError
source§fn clone(&self) -> PsDataChunkError
fn clone(&self) -> PsDataChunkError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PsDataChunkError
impl Debug for PsDataChunkError
source§impl Display for PsDataChunkError
impl Display for PsDataChunkError
source§impl Error for PsDataChunkError
impl Error for PsDataChunkError
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<PsCypherError> for PsDataChunkError
impl From<PsCypherError> for PsDataChunkError
source§fn from(source: PsCypherError) -> Self
fn from(source: PsCypherError) -> Self
Converts to this type from the input type.
source§impl Hash for PsDataChunkError
impl Hash for PsDataChunkError
source§impl Ord for PsDataChunkError
impl Ord for PsDataChunkError
source§fn cmp(&self, other: &PsDataChunkError) -> Ordering
fn cmp(&self, other: &PsDataChunkError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PsDataChunkError
impl PartialEq for PsDataChunkError
source§fn eq(&self, other: &PsDataChunkError) -> bool
fn eq(&self, other: &PsDataChunkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PsDataChunkError
impl PartialOrd for PsDataChunkError
source§fn partial_cmp(&self, other: &PsDataChunkError) -> Option<Ordering>
fn partial_cmp(&self, other: &PsDataChunkError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PsDataChunkError
impl Eq for PsDataChunkError
impl StructuralPartialEq for PsDataChunkError
Auto Trait Implementations§
impl Freeze for PsDataChunkError
impl RefUnwindSafe for PsDataChunkError
impl Send for PsDataChunkError
impl Sync for PsDataChunkError
impl Unpin for PsDataChunkError
impl UnwindSafe for PsDataChunkError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> CallHasher for T
impl<T> CallHasher for T
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.