pub struct MqttPlugin;
Trait Implementations§
Source§impl Plugin for MqttPlugin
impl Plugin for MqttPlugin
Source§const DEFAULT_NAME: &'static str = "mqtt"
const DEFAULT_NAME: &'static str = "mqtt"
Plugins’ default name when statically linked.
Source§const PLUGIN_LONG_VERSION: &'static str = "v1.2.0"
const PLUGIN_LONG_VERSION: &'static str = "v1.2.0"
Plugin’s long version (with git commit hash). Used only for information purposes. It’s recommended to use plugin_version! macro to generate this string.
Source§const PLUGIN_VERSION: &'static str = "1.2.0"
const PLUGIN_VERSION: &'static str = "1.2.0"
Plugin’s version. Used only for information purposes. It’s recommended to use plugin_version! macro to generate this string.
type StartArgs = Runtime
type Instance = Box<dyn RunningPluginTrait + Send + Sync>
Source§impl PluginControl for MqttPlugin
impl PluginControl for MqttPlugin
Source§fn report(&self) -> PluginReport
fn report(&self) -> PluginReport
Returns the current state of the running plugin. By default, the state is
PluginReportLevel::Normal
and the list of messages is empty.
This can be overridden by the plugin implementation if the plugin is able to report its status: no connection to the database, etc.Source§fn plugins_status(&self, _names: &keyexpr) -> Vec<PluginStatusRec<'_>>
fn plugins_status(&self, _names: &keyexpr) -> Vec<PluginStatusRec<'_>>
Collects information of sub-plugins matching the
_names
key expression. The information is richer than the one returned by report()
: it contains external information about the running plugin, such as its name, path on disk, load status, etc.
Returns an empty list by default.Source§impl RunningPluginTrait for MqttPlugin
impl RunningPluginTrait for MqttPlugin
Source§fn config_checker(
&self,
_path: &str,
_current: &Map<String, Value>,
_new: &Map<String, Value>,
) -> Result<Option<Map<String, Value>>, Box<dyn Error + Send + Sync>>
fn config_checker( &self, _path: &str, _current: &Map<String, Value>, _new: &Map<String, Value>, ) -> Result<Option<Map<String, Value>>, Box<dyn Error + Send + Sync>>
Function that will be called when configuration relevant to the plugin is about to change. Read more
Source§fn adminspace_getter<'a>(
&'a self,
_key_expr: &'a KeyExpr<'a>,
_plugin_status_key: &str,
) -> Result<Vec<Response>, Box<dyn Error + Send + Sync>>
fn adminspace_getter<'a>( &'a self, _key_expr: &'a KeyExpr<'a>, _plugin_status_key: &str, ) -> Result<Vec<Response>, Box<dyn Error + Send + Sync>>
Used to request plugin’s status for the administration space.
Function called on any query on admin space that matches this plugin’s sub-part of the admin space.
Thus the plugin can reply its contribution to the global admin space of this zenohd.
Parameters: Read more
impl ZenohPlugin for MqttPlugin
Auto Trait Implementations§
impl Freeze for MqttPlugin
impl RefUnwindSafe for MqttPlugin
impl Send for MqttPlugin
impl Sync for MqttPlugin
impl Unpin for MqttPlugin
impl UnwindSafe for MqttPlugin
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more