Enum deltoid::error::DeltaError
source · pub enum DeltaError {
BugDetected {
msg: String,
file: String,
line: u32,
column: u32,
},
ExpectedValue {
type_name: String,
file: String,
line: u32,
column: u32,
},
FailedToEnsure {
predicate: String,
msg: String,
file: String,
line: u32,
column: u32,
},
FailedToApplyDelta {
reason: String,
},
FailedToConvertFromDelta {
reason: String,
},
IllegalDelta {
index: usize,
},
RwLockAccessWouldBlock,
RwLockPoisoned(String),
}
Variants§
BugDetected
ExpectedValue
FailedToEnsure
FailedToApplyDelta
FailedToConvertFromDelta
IllegalDelta
RwLockAccessWouldBlock
RwLockPoisoned(String)
Trait Implementations§
source§impl Apply for DeltaError
impl Apply for DeltaError
source§fn apply(&self, delta: Self::Delta) -> DeltaResult<Self>
fn apply(&self, delta: Self::Delta) -> DeltaResult<Self>
Calculate a new instance of
Self
based on self
and delta
i.e. calculate self --[delta]--> other
.
^^^^^source§impl Clone for DeltaError
impl Clone for DeltaError
source§fn clone(&self) -> DeltaError
fn clone(&self) -> DeltaError
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 Core for DeltaError
impl Core for DeltaError
type Delta = DeltaErrorDelta
source§impl Debug for DeltaError
impl Debug for DeltaError
source§impl Delta for DeltaError
impl Delta for DeltaError
source§impl<'de> Deserialize<'de> for DeltaError
impl<'de> Deserialize<'de> for DeltaError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> From<TryLockError<T>> for DeltaError
impl<T> From<TryLockError<T>> for DeltaError
source§fn from(err: TryLockError<T>) -> DeltaError
fn from(err: TryLockError<T>) -> DeltaError
Converts to this type from the input type.
source§impl FromDelta for DeltaError
impl FromDelta for DeltaError
source§fn from_delta(delta: Self::Delta) -> DeltaResult<Self>
fn from_delta(delta: Self::Delta) -> DeltaResult<Self>
Convert
Self::Delta
to Self
.source§impl Hash for DeltaError
impl Hash for DeltaError
source§impl IntoDelta for DeltaError
impl IntoDelta for DeltaError
source§fn into_delta(self) -> DeltaResult<Self::Delta>
fn into_delta(self) -> DeltaResult<Self::Delta>
Convert
Self
to Self::Delta
.source§impl Ord for DeltaError
impl Ord for DeltaError
source§fn cmp(&self, other: &DeltaError) -> Ordering
fn cmp(&self, other: &DeltaError) -> 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<DeltaError> for DeltaError
impl PartialEq<DeltaError> for DeltaError
source§fn eq(&self, other: &DeltaError) -> bool
fn eq(&self, other: &DeltaError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DeltaError> for DeltaError
impl PartialOrd<DeltaError> for DeltaError
source§fn partial_cmp(&self, other: &DeltaError) -> Option<Ordering>
fn partial_cmp(&self, other: &DeltaError) -> 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 moresource§impl Serialize for DeltaError
impl Serialize for DeltaError
impl Eq for DeltaError
impl StructuralEq for DeltaError
impl StructuralPartialEq for DeltaError
Auto Trait Implementations§
impl RefUnwindSafe for DeltaError
impl Send for DeltaError
impl Sync for DeltaError
impl Unpin for DeltaError
impl UnwindSafe for DeltaError
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