pub struct WcgiError { /* private fields */ }Implementations§
source§impl WcgiError
impl WcgiError
sourcepub fn wrap<E: Error + Send + Sync + 'static, M: Into<String>>(
error: E,
message: M
) -> Self
pub fn wrap<E: Error + Send + Sync + 'static, M: Into<String>>( error: E, message: M ) -> Self
Wrap an error with a custom message.
sourcepub fn msg<M: Into<String>>(message: M) -> Self
pub fn msg<M: Into<String>>(message: M) -> Self
Construct a new error with a simple error message.
pub fn as_std(self) -> StdWcgiError
pub fn source(&self) -> Option<&(dyn Error + 'static)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WcgiError
impl !RefUnwindSafe for WcgiError
impl Send for WcgiError
impl Sync for WcgiError
impl Unpin for WcgiError
impl !UnwindSafe for WcgiError
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