[−][src]Trait svc_agent::mqtt::Publishable
Required methods
fn destination_topic(&self, publisher: &Address) -> Result<String, Error>
Returns a destination topic as string.
Arguments
publisher
– publisher agent.
Example
let topic = message.destination_topic(&agent_id, "v1")?;
fn qos(&self) -> QoS
Returns QoS for publishing.
Implementors
impl<T: Serialize> Publishable for OutgoingEvent<T> where
OutgoingEvent<T>: IntoEnvelope,
[src]
OutgoingEvent<T>: IntoEnvelope,
fn destination_topic(&self, publisher: &Address) -> Result<String, Error>
[src]
fn qos(&self) -> QoS
[src]
impl<T: Serialize> Publishable for OutgoingRequest<T> where
OutgoingRequest<T>: IntoEnvelope,
[src]
OutgoingRequest<T>: IntoEnvelope,
fn destination_topic(&self, publisher: &Address) -> Result<String, Error>
[src]
fn qos(&self) -> QoS
[src]
impl<T: Serialize> Publishable for OutgoingResponse<T> where
OutgoingResponse<T>: IntoEnvelope,
[src]
OutgoingResponse<T>: IntoEnvelope,