pub struct Extension { /* private fields */ }Expand description
An Extension associates a file extension (e.g. .py) to a set of shared libraries.
This details how a Zenoh-Flow runtime should load nodes that have the url of their implementation with this extension.
Zenoh-Flow only supports node implementation in the form of shared libraries. To support additional implementation — for instance Python scripts — a Zenoh-Flow runtime needs to be informed on (i) which shared libraries it should load and (ii) how it should make these shared libraries “load” the node implementation.
To support an extension on a Zenoh-Flow runtime, one can either detail them in the configuration file of the runtime or through the dedicated method.
§Example configuration
(Yaml)
file_extension: py
libraries:
source: /home/zenoh-flow/libpy_source.so
operator: /home/zenoh-flow/libpy_operator.so
sink: /home/zenoh-flow/libpy_sink.soImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
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
impl Eq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.