[−][src]Struct svc_agent::mqtt::OutgoingRequestProperties
Properties of an outgoing request.
Implementations
impl OutgoingRequestProperties
[src]
pub fn new(
method: &str,
response_topic: &str,
correlation_data: &str,
short_term_timing: OutgoingShortTermTimingProperties
) -> Self
[src]
method: &str,
response_topic: &str,
correlation_data: &str,
short_term_timing: OutgoingShortTermTimingProperties
) -> Self
Builds OutgoingRequestProperties.
Use this function only if you're making a request from scratch.
If you make a request while handling another request consider using IncomingRequestProperties::to_request.
Arguments
method
– request method.response_topic
– a topic to send the response to the request to.correlation_data
– any string to correlate request with the upcoming response.short_term_timing
– outgoing request's short term timing properties.
Example
let props = OutgoingRequestProperties::new( "system.vacuum", &Subscription::unicast_responses(), OutgoingShortTermTimingProperties::new(Utc::now()), );
pub fn set_agent_id(&mut self, agent_id: AgentId) -> &mut Self
[src]
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]
pub fn set_local_tracking_label(
&mut self,
local_tracking_label: String
) -> &mut Self
[src]
&mut self,
local_tracking_label: String
) -> &mut Self
pub fn set_local_timestamp(
&mut self,
local_timestamp: DateTime<Utc>
) -> &mut Self
[src]
&mut self,
local_timestamp: DateTime<Utc>
) -> &mut Self
pub fn correlation_data(&self) -> &str
[src]
Trait Implementations
impl Debug for OutgoingRequestProperties
[src]
impl Serialize for OutgoingRequestProperties
[src]
Auto Trait Implementations
impl RefUnwindSafe for OutgoingRequestProperties
impl Send for OutgoingRequestProperties
impl Sync for OutgoingRequestProperties
impl Unpin for OutgoingRequestProperties
impl UnwindSafe for OutgoingRequestProperties
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>,