pub struct StructuredEventBuilder { /* private fields */ }Expand description
Builder for structured events
Implementations§
Source§impl StructuredEventBuilder
impl StructuredEventBuilder
Sourcepub fn new(component: EventComponent, kind: EventKind) -> Self
pub fn new(component: EventComponent, kind: EventKind) -> Self
Create a new builder
Sourcepub fn severity(self, severity: EventSeverity) -> Self
pub fn severity(self, severity: EventSeverity) -> Self
Set event severity
Sourcepub fn addr(self, addr: SocketAddr) -> Self
pub fn addr(self, addr: SocketAddr) -> Self
Set associated address
Sourcepub fn build(self) -> StructuredEvent
pub fn build(self) -> StructuredEvent
Build the event
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StructuredEventBuilder
impl RefUnwindSafe for StructuredEventBuilder
impl Send for StructuredEventBuilder
impl Sync for StructuredEventBuilder
impl Unpin for StructuredEventBuilder
impl UnwindSafe for StructuredEventBuilder
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