pub struct ErrorDataBuilder {
pub kind: Option<ErrorKind>,
pub message: Option<String>,
pub thread_name: Option<String>,
pub stack: Option<StackTrace>,
pub threads: Option<Vec<ThreadData>>,
}Fields§
§kind: Option<ErrorKind>§message: Option<String>§thread_name: Option<String>§stack: Option<StackTrace>§threads: Option<Vec<ThreadData>>Implementations§
Source§impl ErrorDataBuilder
impl ErrorDataBuilder
pub fn build(self) -> Result<(ErrorData, bool)>
pub fn new() -> Self
pub fn with_kind(&mut self, kind: ErrorKind) -> Result<()>
pub fn with_message(&mut self, message: String) -> Result<()>
pub fn with_thread_name(&mut self, thread_name: String) -> Result<()>
pub fn with_stack(&mut self, stack: StackTrace) -> Result<()>
pub fn with_stack_frame( &mut self, frame: StackFrame, incomplete: bool, ) -> Result<()>
pub fn with_stack_set_complete(&mut self) -> Result<()>
pub fn with_threads(&mut self, threads: Vec<ThreadData>) -> Result<()>
pub fn with_thread(&mut self, thread: ThreadData) -> Result<()>
Trait Implementations§
Source§impl Debug for ErrorDataBuilder
impl Debug for ErrorDataBuilder
Source§impl Default for ErrorDataBuilder
impl Default for ErrorDataBuilder
Source§fn default() -> ErrorDataBuilder
fn default() -> ErrorDataBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ErrorDataBuilder
impl PartialEq for ErrorDataBuilder
impl StructuralPartialEq for ErrorDataBuilder
Auto Trait Implementations§
impl Freeze for ErrorDataBuilder
impl RefUnwindSafe for ErrorDataBuilder
impl Send for ErrorDataBuilder
impl Sync for ErrorDataBuilder
impl Unpin for ErrorDataBuilder
impl UnsafeUnpin for ErrorDataBuilder
impl UnwindSafe for ErrorDataBuilder
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