[][src]Struct svc_agent::mqtt::OutgoingEventProperties

pub struct OutgoingEventProperties { /* fields omitted */ }

Properties of an outgoing event.

Methods

impl OutgoingEventProperties[src]

pub fn new(
    label: &'static str,
    short_term_timing: OutgoingShortTermTimingProperties
) -> Self
[src]

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_long_term_timing(
    &mut self,
    timing: LongTermTimingProperties
) -> &mut Self
[src]

pub fn set_tracking(&mut self, tracking: TrackingProperties) -> &mut Self[src]

Trait Implementations

impl Debug for OutgoingEventProperties[src]

impl Serialize for OutgoingEventProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,