pub struct RokError {
pub code: ExitCode,
pub message: String,
pub context: Option<String>,
}Fields§
§code: ExitCode§message: String§context: Option<String>Implementations§
Source§impl RokError
impl RokError
pub fn new(code: ExitCode, message: impl Into<String>) -> Self
pub fn with_context(self, context: impl Into<String>) -> Self
pub fn schema(message: impl Into<String>) -> Self
pub fn startup(message: impl Into<String>) -> Self
pub fn config(message: impl Into<String>) -> Self
pub fn io(message: impl Into<String>) -> Self
pub fn timeout(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Error for RokError
impl Error for RokError
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 RokError
impl RefUnwindSafe for RokError
impl Send for RokError
impl Sync for RokError
impl Unpin for RokError
impl UnsafeUnpin for RokError
impl UnwindSafe for RokError
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