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
Description of a Block.
This struct can be serialized to be used with the REST API.
Fields§
§id: BlockIdId
type_name: StringType name
instance_name: StringInstance name
stream_inputs: Vec<String>Stream inputs
stream_outputs: Vec<String>Stream outputs
message_inputs: Vec<String>Message inputs
message_outputs: Vec<String>Message outputs
blocking: boolBlocking
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 · 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 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