pub struct RajacError { /* private fields */ }Implementations§
Source§impl RajacError
impl RajacError
pub fn new(kind: ErrorKind) -> Self
pub fn at_location( kind: ErrorKind, location: &'static Location<'static>, ) -> Self
pub fn message(s: impl Into<SharedString>) -> Self
pub fn message_at_location( s: impl Into<SharedString>, location: &'static Location<'static>, ) -> Self
pub fn std(error: impl StdError + Send + Sync + 'static) -> Self
pub fn std_at_location( error: impl StdError + Send + Sync + 'static, location: &'static Location<'static>, ) -> Self
pub fn kind(&self) -> &ErrorKind
pub fn source(&self) -> Option<&RajacError>
pub fn location(&self) -> &'static Location<'static>
pub fn span_trace(&self) -> &SpanTrace
pub fn with_source(self, source: impl Into<RajacError>) -> Self
pub fn with_std_source( self, source: impl StdError + Send + Sync + 'static, ) -> Self
pub fn with_std_source_at_location( self, source: impl StdError + Send + Sync + 'static, location: &'static Location<'static>, ) -> Self
pub fn write_to(&self, write: &mut dyn Write) -> Result
pub fn to_test_string(&self) -> String
Trait Implementations§
Source§impl Debug for RajacError
impl Debug for RajacError
Auto Trait Implementations§
impl Freeze for RajacError
impl !RefUnwindSafe for RajacError
impl Send for RajacError
impl Sync for RajacError
impl Unpin for RajacError
impl UnsafeUnpin for RajacError
impl !UnwindSafe for RajacError
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