#[non_exhaustive]pub struct NodeRunConfig {
pub inputs: BTreeMap<DataId, Input>,
pub outputs: BTreeSet<DataId>,
pub output_types: BTreeMap<DataId, String>,
pub output_framing: BTreeMap<DataId, OutputFraming>,
pub input_types: BTreeMap<DataId, String>,
pub shared_memory_pool_size: Option<ByteSize>,
}Expand description
Contains the input and output configuration of the node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inputs: BTreeMap<DataId, Input>Inputs for the nodes as a map from input ID to node_id/output_id.
e.g.
inputs:
example_input: example_node/example_output1
outputs: BTreeSet<DataId>List of output IDs.
e.g.
outputs:
-
output_1
-
output_2
output_types: BTreeMap<DataId, String>Optional type annotations for outputs
output_framing: BTreeMap<DataId, OutputFraming>Per-output framing overrides. Ignored: every output is encoded as
Arrow IPC (see descriptor::OutputFraming).
input_types: BTreeMap<DataId, String>Optional type annotations for inputs
Size of the zenoh shared memory pool for zero-copy output publishing.
Accepts an integer (raw bytes) or a string with a unit suffix
(KB, MB, GB, case-insensitive).
e.g.
shared_memory_pool_size: 128MB
Trait Implementations§
Source§impl Clone for NodeRunConfig
impl Clone for NodeRunConfig
Source§fn clone(&self) -> NodeRunConfig
fn clone(&self) -> NodeRunConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeRunConfig
impl Debug for NodeRunConfig
Source§impl Default for NodeRunConfig
impl Default for NodeRunConfig
Source§fn default() -> NodeRunConfig
fn default() -> NodeRunConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeRunConfig
impl<'de> Deserialize<'de> for NodeRunConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeRunConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeRunConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeRunConfig
Source§impl JsonSchema for NodeRunConfig
impl JsonSchema for NodeRunConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NodeRunConfig
impl PartialEq for NodeRunConfig
Source§impl Serialize for NodeRunConfig
impl Serialize for NodeRunConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NodeRunConfig
Auto Trait Implementations§
impl Forget for NodeRunConfig
impl Freeze for NodeRunConfigwhere
*const LeafNode<DataId, Input> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(DataId, Input)>>: Freeze,
*const LeafNode<DataId, SetValZST> is !null: Freeze,
PhantomData<Box<(DataId, SetValZST)>>: Freeze,
*const LeafNode<DataId, String> is !null: Freeze,
PhantomData<Box<(DataId, String)>>: Freeze,
*const LeafNode<DataId, OutputFraming> is !null: Freeze,
PhantomData<Box<(DataId, OutputFraming)>>: Freeze,
impl Move for NodeRunConfig
impl RefUnwindSafe for NodeRunConfig
impl Send for NodeRunConfigwhere
NodeRef<Owned, DataId, Input, LeafOrInternal>: Send,
BoxRaw<(DataId, Input)>: Send,
NodeRef<Owned, DataId, SetValZST, LeafOrInternal>: Send,
BoxRaw<(DataId, SetValZST)>: Send,
NodeRef<Owned, DataId, String, LeafOrInternal>: Send,
BoxRaw<(DataId, String)>: Send,
NodeRef<Owned, DataId, OutputFraming, LeafOrInternal>: Send,
BoxRaw<(DataId, OutputFraming)>: Send,
impl Sync for NodeRunConfigwhere
NodeRef<Owned, DataId, Input, LeafOrInternal>: Sync,
BoxRaw<(DataId, Input)>: Sync,
NodeRef<Owned, DataId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(DataId, SetValZST)>: Sync,
NodeRef<Owned, DataId, String, LeafOrInternal>: Sync,
BoxRaw<(DataId, String)>: Sync,
NodeRef<Owned, DataId, OutputFraming, LeafOrInternal>: Sync,
BoxRaw<(DataId, OutputFraming)>: Sync,
impl Unpin for NodeRunConfigwhere
*const LeafNode<DataId, Input> is !null: Unpin,
Box<(DataId, Input)>: Unpin,
*const LeafNode<DataId, SetValZST> is !null: Unpin,
Box<(DataId, SetValZST)>: Unpin,
*const LeafNode<DataId, String> is !null: Unpin,
Box<(DataId, String)>: Unpin,
*const LeafNode<DataId, OutputFraming> is !null: Unpin,
Box<(DataId, OutputFraming)>: Unpin,
impl UnsafeUnpin for NodeRunConfigwhere
*const LeafNode<DataId, Input> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(DataId, Input)>>: UnsafeUnpin,
*const LeafNode<DataId, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, SetValZST)>>: UnsafeUnpin,
*const LeafNode<DataId, String> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, String)>>: UnsafeUnpin,
*const LeafNode<DataId, OutputFraming> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, OutputFraming)>>: UnsafeUnpin,
impl UnwindSafe for NodeRunConfigwhere
BTreeMap<DataId, Input>: UnwindSafe,
BTreeMap<DataId, SetValZST>: UnwindSafe,
BTreeMap<DataId, String>: UnwindSafe,
BTreeMap<DataId, OutputFraming>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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