pub struct ErrorBuilder { /* private fields */ }Expand description
Builder for error events.
Implementations§
Source§impl ErrorBuilder
impl ErrorBuilder
Sourcepub fn retryable_if(self, should_retry: bool) -> Self
pub fn retryable_if(self, should_retry: bool) -> Self
Set retryable based on a boolean condition.
Sourcepub fn hint_if_some(self, hint: Option<&str>) -> Self
pub fn hint_if_some(self, hint: Option<&str>) -> Self
Set the hint if present.
Sourcepub fn extend<T: Serialize>(self, value: T) -> Self
pub fn extend<T: Serialize>(self, value: T) -> Self
Extend with a serializable value (must serialize to JSON object).
Sourcepub fn build(self) -> Result<Event, BuildError>
pub fn build(self) -> Result<Event, BuildError>
Build the event.
Auto Trait Implementations§
impl Forget for ErrorBuilder
impl Freeze for ErrorBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Value>: Freeze,
impl Move for ErrorBuilder
impl RefUnwindSafe for ErrorBuilder
impl Send for ErrorBuilder
impl Sync for ErrorBuilder
impl Unpin for ErrorBuilder
impl UnsafeUnpin for ErrorBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for ErrorBuilder
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