pub enum DceErr {
Openly(DceError),
Closed(DceError),
}Variants§
Implementations§
Source§impl DceErr
impl DceErr
pub fn value(&self) -> &DceError
pub fn openly<T: ToString>(code: isize, message: T) -> Self
pub fn closed<T: ToString>(code: isize, message: T) -> Self
pub fn openly0<T: ToString>(message: T) -> Self
pub fn closed0<T: ToString>(message: T) -> Self
pub fn none() -> Self
pub fn openly0_wrap<M: ToString, R>(message: M) -> Result<R, Self>
pub fn closed0_wrap<M: ToString, R>(message: M) -> Result<R, Self>
pub fn to_responsible(&self) -> String
Trait Implementations§
Source§impl Error for DceErr
impl Error for DceErr
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()
Auto Trait Implementations§
impl Freeze for DceErr
impl RefUnwindSafe for DceErr
impl Send for DceErr
impl Sync for DceErr
impl Unpin for DceErr
impl UnsafeUnpin for DceErr
impl UnwindSafe for DceErr
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