pub struct BlockDescription {
pub id: BlockId,
pub type_name: String,
pub instance_name: String,
pub stream_inputs: Vec<String>,
pub stream_outputs: Vec<String>,
pub message_inputs: Vec<String>,
pub message_outputs: Vec<String>,
pub blocking: bool,
}Expand description
Serializable description of one block instance.
This is the block-level metadata returned by the control port and runtime flowgraph handles.
Fields§
§id: BlockIdBlock id inside the flowgraph.
type_name: StringRust type name of the block kernel.
instance_name: StringRuntime instance name assigned to the block.
stream_inputs: Vec<String>Stream input port names.
stream_outputs: Vec<String>Stream output port names.
message_inputs: Vec<String>Message input port names.
message_outputs: Vec<String>Message output port names.
blocking: boolWhether the block runs on a blocking/local execution path.
Blocking blocks have an async API but are spawned in a separate thread, i.e., it is ok to block inside the async function.
Trait Implementations§
Source§impl Clone for BlockDescription
impl Clone for BlockDescription
Source§fn clone(&self) -> BlockDescription
fn clone(&self) -> BlockDescription
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 BlockDescription
impl Debug for BlockDescription
Source§impl<'de> Deserialize<'de> for BlockDescription
impl<'de> Deserialize<'de> for BlockDescription
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
Auto Trait Implementations§
impl Freeze for BlockDescription
impl RefUnwindSafe for BlockDescription
impl Send for BlockDescription
impl Sync for BlockDescription
impl Unpin for BlockDescription
impl UnsafeUnpin for BlockDescription
impl UnwindSafe for BlockDescription
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