pub struct OutgoingEventProperties { /* private fields */ }
Expand description
Properties of an outgoing event.
Implementations§
Source§impl OutgoingEventProperties
impl OutgoingEventProperties
Sourcepub fn new(
label: &'static str,
short_term_timing: OutgoingShortTermTimingProperties,
) -> Self
pub fn new( label: &'static str, short_term_timing: OutgoingShortTermTimingProperties, ) -> Self
Builds OutgoingEventProperties.
Use this function only if you’re dispatching an event from scratch.
If you make a reaction event on an incoming request or another event consider using IncomingRequestProperties::to_event or IncomingEventProperties::to_event respectively.
§Arguments
label
– event label.short_term_timing
– event’s short term timing properties.
§Example
let props = OutgoingEventProperties::new(
"agent.enter",
OutgoingShortTermTimingProperties::new(Utc::now()),
);
pub fn set_agent_id(&mut self, agent_id: AgentId) -> &mut Self
pub fn set_long_term_timing( &mut self, timing: LongTermTimingProperties, ) -> &mut Self
pub fn set_tracking(&mut self, tracking: TrackingProperties) -> &mut Self
pub fn set_local_tracking_label(&mut self, label: String) -> &mut Self
Trait Implementations§
Source§impl Debug for OutgoingEventProperties
impl Debug for OutgoingEventProperties
Auto Trait Implementations§
impl Freeze for OutgoingEventProperties
impl RefUnwindSafe for OutgoingEventProperties
impl Send for OutgoingEventProperties
impl Sync for OutgoingEventProperties
impl Unpin for OutgoingEventProperties
impl UnwindSafe for OutgoingEventProperties
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