[][src]Enum svc_agent::mqtt::ConnectionMode

pub enum ConnectionMode {
    Default,
    Service,
    Observer,
    Bridge,
}

Connection mode of an agent that defines the level of privileges.

Variants

Default

This mode locks the agent in his home topic allowing to publish and subscribe only to topics that start with agent/AGENT_ID/api/.

It must be used by end user agents.

Service

This mode allows the agent to publish to any topic. It enables the service to send responses to end users and other services.

It mode must be used by regular service agents.

Observer

This mode allows also subscribing to any topic.

It shouldn't generally be used at all in production environment but may be useful for debugging and administrating.

Bridge

This mode allows publishing messages on behalf of another agent.

It's intended for bridge service only that enable interaction with the system through protocols different from MQTT.

Trait Implementations

impl Clone for ConnectionMode[src]

impl Debug for ConnectionMode[src]

impl<'de> Deserialize<'de> for ConnectionMode[src]

impl Display for ConnectionMode[src]

impl FromStr for ConnectionMode[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for ConnectionMode[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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>,