[−][src]Struct svc_agent::mqtt::OutgoingEventProperties
Properties of an outgoing event.
Methods
impl OutgoingEventProperties
[src]
pub fn new(
label: &'static str,
short_term_timing: ShortTermTimingProperties
) -> Self
[src]
label: &'static str,
short_term_timing: ShortTermTimingProperties
) -> 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", ShortTermTimingProperties::new(Utc::now()), );
pub fn set_long_term_timing(
&mut self,
timing: LongTermTimingProperties
) -> &mut Self
[src]
&mut self,
timing: LongTermTimingProperties
) -> &mut Self
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
impl RefUnwindSafe for OutgoingEventProperties
impl Send for OutgoingEventProperties
impl Sync for OutgoingEventProperties
impl Unpin for OutgoingEventProperties
impl UnwindSafe for OutgoingEventProperties
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,