pub struct EventBuilder { /* private fields */ }Expand description
Builder for Event.
Implementations§
Source§impl EventBuilder
impl EventBuilder
pub fn time<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn data<VALUE: Into<EvnetData>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn path<VALUE: Into<PathID>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<PathID>>(&mut self, value: VALUE) -> &mut Self
A qlog event can be associated with a single “network path” (usually, but not always, identified by a 4-tuple of IP addresses and ports). In many cases, the path will be the same for all events in a given trace, and does not need to be logged explicitly with each event. In this case, the “path” field can be omitted (in which case the default value of “” is assumed) or reflected in “common_fields” instead
pub fn time_format<VALUE: Into<TimeFormat>>( &mut self, value: VALUE, ) -> &mut Self
pub fn protocol_types<VALUE: Into<ProtocolTypeList>>( &mut self, value: VALUE, ) -> &mut Self
pub fn group_id<VALUE: Into<GroupID>>(&mut self, value: VALUE) -> &mut Self
pub fn system_info<VALUE: Into<SystemInformation>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
Source§impl Clone for EventBuilder
impl Clone for EventBuilder
Source§fn clone(&self) -> EventBuilder
fn clone(&self) -> EventBuilder
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)