pub enum SynapseError {
MissingField(&'static str),
InvalidValue {
field: &'static str,
reason: &'static str,
},
}Expand description
Errors that can occur while calculating Synapse metrics.
Variants§
MissingField(&'static str)
One or more required fields were not provided.
InvalidValue
A numeric field was NaN, infinite, or outside its valid domain.
Trait Implementations§
Source§impl Clone for SynapseError
impl Clone for SynapseError
Source§fn clone(&self) -> SynapseError
fn clone(&self) -> SynapseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SynapseError
impl Debug for SynapseError
Source§impl Display for SynapseError
impl Display for SynapseError
Source§impl Error for SynapseError
impl Error for SynapseError
1.30.0 · 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 PartialEq for SynapseError
impl PartialEq for SynapseError
impl StructuralPartialEq for SynapseError
Auto Trait Implementations§
impl Freeze for SynapseError
impl RefUnwindSafe for SynapseError
impl Send for SynapseError
impl Sync for SynapseError
impl Unpin for SynapseError
impl UnsafeUnpin for SynapseError
impl UnwindSafe for SynapseError
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