Struct CuError
pub struct CuError {
pub(crate) message: String,
pub(crate) cause: Option<String>,
}
Expand description
Common copper Error type.
Fields§
§message: String
§cause: Option<String>
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for CuError
impl<'de> Deserialize<'de> for CuError
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CuError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CuError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Error for CuError
impl Error for CuError
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()
§impl Serialize for CuError
impl Serialize for CuError
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CuError
impl RefUnwindSafe for CuError
impl Send for CuError
impl Sync for CuError
impl Unpin for CuError
impl UnwindSafe for CuError
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