Struct Mark Event
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct MarkEvent {
pub base: BaseEvent,
pub category: Option<EventCategory>,
pub category_profile: Option<CategoryProfile>,
}
ATOF point-in-time mark event.
Fields
base: BaseEvent
Shared ATOF envelope.
category: Option<EventCategory>
Optional semantic category for the checkpoint.
category_profile: Option<CategoryProfile>
Optional category-specific typed fields.
Implementations
impl MarkEvent
impl MarkEvent
builder
pub fn builder() -> MarkEventBuilder<((), ())>
Create a builder for building MarkEvent. On the builder, call .category(...)(optional), .category_profile(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of MarkEvent.
impl MarkEvent
impl MarkEvent
new
pub fn new(
base: BaseEvent,
category: Option<EventCategory>,
category_profile: Option<CategoryProfile>,
) -> Self
Construct a mark event from a base envelope and optional category data.
Parameters
base: Shared ATOF event envelope.category: Optional semantic event category.category_profile: Optional category-specific profile data.
Returns
A MarkEvent containing the provided fields.
Trait Implementations
impl Clone for MarkEvent
impl Clone for MarkEvent
clone
fn clone(&self) -> MarkEvent
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for MarkEvent
impl Debug for MarkEvent
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for MarkEvent
impl<'de> Deserialize<'de> for MarkEvent
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for MarkEvent
impl PartialEq for MarkEvent
eq
fn eq(&self, other: &MarkEvent) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for MarkEvent
impl Serialize for MarkEvent
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for MarkEvent
impl StructuralPartialEq for MarkEvent