pub struct ErrorContext {
pub builtin: Option<String>,
pub task_id: Option<String>,
pub call_frames: Vec<CallFrame>,
pub call_frames_elided: usize,
pub call_stack: Vec<String>,
pub phase: Option<String>,
}Fields§
§builtin: Option<String>§task_id: Option<String>§call_frames: Vec<CallFrame>§call_frames_elided: usize§call_stack: Vec<String>§phase: Option<String>Implementations§
Source§impl ErrorContext
impl ErrorContext
pub fn with_builtin(self, builtin: impl Into<String>) -> Self
pub fn with_task_id(self, task_id: impl Into<String>) -> Self
pub fn with_call_stack(self, call_stack: Vec<String>) -> Self
pub fn with_call_frames(self, call_frames: Vec<CallFrame>) -> Self
pub fn with_call_frames_elided(self, count: usize) -> Self
pub fn with_phase(self, phase: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorContext
impl Debug for ErrorContext
Source§impl Default for ErrorContext
impl Default for ErrorContext
Source§fn default() -> ErrorContext
fn default() -> ErrorContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for ErrorContext
impl PartialEq for ErrorContext
impl Eq for ErrorContext
impl StructuralPartialEq for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
impl UnwindSafe for ErrorContext
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