pub struct ReportErrorBuilder<'a> { /* private fields */ }
Expand description
Builder specialized for reporting errors.
Implementations§
Source§impl<'a> ReportErrorBuilder<'a>
impl<'a> ReportErrorBuilder<'a>
Sourcepub fn with_backtrace(&mut self, backtrace: &'a Backtrace) -> &mut Self
pub fn with_backtrace(&mut self, backtrace: &'a Backtrace) -> &mut Self
Attach a backtrace::Backtrace
to the description
of the report.
Sourcepub fn with_frame(&mut self, frame_builder: FrameBuilder) -> &mut Self
pub fn with_frame(&mut self, frame_builder: FrameBuilder) -> &mut Self
Add a new frame to the collection of stack frames.
pub fn with_level<T: Into<Level>>(&mut self, val: T) -> &mut Self
pub fn with_title<T: Into<String>>(&mut self, val: T) -> &mut Self
Sourcepub fn send(&mut self) -> JoinHandle<Option<ResponseStatus>>
pub fn send(&mut self) -> JoinHandle<Option<ResponseStatus>>
Send the report to Rollbar.
Trait Implementations§
Source§impl<'a> Serialize for ReportErrorBuilder<'a>
impl<'a> Serialize for ReportErrorBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReportErrorBuilder<'a>
impl<'a> !RefUnwindSafe for ReportErrorBuilder<'a>
impl<'a> !Send for ReportErrorBuilder<'a>
impl<'a> !Sync for ReportErrorBuilder<'a>
impl<'a> Unpin for ReportErrorBuilder<'a>
impl<'a> !UnwindSafe for ReportErrorBuilder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more