pub struct BaseLink<Tx> {
pub id: Uuid,
pub target_block_id: Uuid,
pub target_input: String,
pub tx: Option<Tx>,
pub state: LinkState,
}Expand description
Base Link that uses an abstract
optional transmitter type Tx.
Links connect a block output to another block’s input. Or, a block input to another block’s input. A block output can have multiple links to multiple block inputs. A block input can have multiple links to multiple block inputs.
Fields§
§id: UuidUnique link id
target_block_id: UuidThe target block id
target_input: StringThe target input name
tx: Option<Tx>Optional transmitter type
state: LinkStateThe current link state
Implementations§
Trait Implementations§
impl<Tx> StructuralPartialEq for BaseLink<Tx>
Auto Trait Implementations§
impl<Tx> Freeze for BaseLink<Tx>where
Tx: Freeze,
impl<Tx> RefUnwindSafe for BaseLink<Tx>where
Tx: RefUnwindSafe,
impl<Tx> Send for BaseLink<Tx>where
Tx: Send,
impl<Tx> Sync for BaseLink<Tx>where
Tx: Sync,
impl<Tx> Unpin for BaseLink<Tx>where
Tx: Unpin,
impl<Tx> UnwindSafe for BaseLink<Tx>where
Tx: UnwindSafe,
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