pub struct EventTypeBuilder { /* private fields */ }Expand description
Builder for configuring event type information on a SessionBuilder.
Obtained by calling SessionBuilder::declare_event_type. Use record
to define a record-shaped event type or custom for a named custom type.
Implementations§
Source§impl EventTypeBuilder
impl EventTypeBuilder
Sourcepub fn record(self) -> EventTypeRecordBuilder
pub fn record(self) -> EventTypeRecordBuilder
Starts building a record-shaped event type with named fields.
Sourcepub fn custom(self, _name: &str) -> SessionBuilder
pub fn custom(self, _name: &str) -> SessionBuilder
Declares a custom (non-record) event type by name.
Auto Trait Implementations§
impl Freeze for EventTypeBuilder
impl RefUnwindSafe for EventTypeBuilder
impl Send for EventTypeBuilder
impl Sync for EventTypeBuilder
impl Unpin for EventTypeBuilder
impl UnwindSafe for EventTypeBuilder
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