pub struct IncomingEventProperties { /* private fields */ }
Expand description
Properties of an incoming event message.
Implementations§
Source§impl IncomingEventProperties
impl IncomingEventProperties
pub fn to_connection(&self) -> Connection
pub fn label(&self) -> Option<&str>
pub fn long_term_timing(&self) -> &LongTermTimingProperties
pub fn short_term_timing(&self) -> &IncomingShortTermTimingProperties
pub fn tracking(&self) -> &TrackingProperties
pub fn local_tracking_label(&self) -> &Option<String>
Sourcepub fn to_event(
&self,
label: &'static str,
short_term_timing: OutgoingShortTermTimingProperties,
) -> OutgoingEventProperties
pub fn to_event( &self, label: &'static str, short_term_timing: OutgoingShortTermTimingProperties, ) -> OutgoingEventProperties
Builds OutgoingEventProperties based on the IncomingEventProperties.
Use it to dispatch an event as a reaction on another event.
§Arguments
label
– outgoing event label.short_term_timing
– outgoing event’s short term timing properties.
§Example
let short_term_timing = OutgoingShortTermTimingProperties::until_now(start_timestamp);
let out_props = in_props.to_event("agent.enter", short_term_timing);
Trait Implementations§
Source§impl Addressable for &IncomingEventProperties
impl Addressable for &IncomingEventProperties
Source§fn as_agent_id(&self) -> &AgentId
fn as_agent_id(&self) -> &AgentId
Returns the AgentId reference of the addressable object.
Source§impl Addressable for IncomingEventProperties
impl Addressable for IncomingEventProperties
Source§fn as_agent_id(&self) -> &AgentId
fn as_agent_id(&self) -> &AgentId
Returns the AgentId reference of the addressable object.
Source§impl Authenticable for &IncomingEventProperties
impl Authenticable for &IncomingEventProperties
fn as_account_id(&self) -> &AccountId
Source§impl Authenticable for IncomingEventProperties
impl Authenticable for IncomingEventProperties
fn as_account_id(&self) -> &AccountId
Source§impl Clone for IncomingEventProperties
impl Clone for IncomingEventProperties
Source§fn clone(&self) -> IncomingEventProperties
fn clone(&self) -> IncomingEventProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IncomingEventProperties
impl Debug for IncomingEventProperties
Source§impl<'de> Deserialize<'de> for IncomingEventProperties
impl<'de> Deserialize<'de> for IncomingEventProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IncomingEventProperties
impl RefUnwindSafe for IncomingEventProperties
impl Send for IncomingEventProperties
impl Sync for IncomingEventProperties
impl Unpin for IncomingEventProperties
impl UnwindSafe for IncomingEventProperties
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