Struct dsntk_common::DsntkError
source · pub struct DsntkError(/* private fields */);
Expand description
Error definition used by all components of this project.
Implementations§
source§impl DsntkError
impl DsntkError
sourcepub fn new(source: &str, message: &str) -> Self
pub fn new(source: &str, message: &str) -> Self
Creates a new DsntkError with specified source name and error message.
Trait Implementations§
source§impl Debug for DsntkError
impl Debug for DsntkError
source§impl Display for DsntkError
impl Display for DsntkError
source§impl<T> From<T> for DsntkErrorwhere
T: ToErrorMessage,
impl<T> From<T> for DsntkErrorwhere T: ToErrorMessage,
source§fn from(value: T) -> Self
fn from(value: T) -> Self
Converts any type that implements ToErrorMessage trait to DsntkError.
source§impl PartialEq for DsntkError
impl PartialEq for DsntkError
source§fn eq(&self, other: &DsntkError) -> bool
fn eq(&self, other: &DsntkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DsntkError
impl StructuralEq for DsntkError
impl StructuralPartialEq for DsntkError
Auto Trait Implementations§
impl RefUnwindSafe for DsntkError
impl Send for DsntkError
impl Sync for DsntkError
impl Unpin for DsntkError
impl UnwindSafe for DsntkError
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