pub enum ConnectionMode {
Default,
Service,
Observer,
Bridge,
}
Expand description
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§
Source§impl Clone for ConnectionMode
impl Clone for ConnectionMode
Source§fn clone(&self) -> ConnectionMode
fn clone(&self) -> ConnectionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConnectionMode
impl Debug for ConnectionMode
Source§impl<'de> Deserialize<'de> for ConnectionMode
impl<'de> Deserialize<'de> for ConnectionMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConnectionMode
impl Display for ConnectionMode
Source§impl FromStr for ConnectionMode
impl FromStr for ConnectionMode
Auto Trait Implementations§
impl Freeze for ConnectionMode
impl RefUnwindSafe for ConnectionMode
impl Send for ConnectionMode
impl Sync for ConnectionMode
impl Unpin for ConnectionMode
impl UnwindSafe for ConnectionMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more