Trait rustfbp::component::InputSenders
[−]
[src]
pub trait InputSenders { fn get_sender(&self, port: String) -> Option<Box<Any + Send + 'static>>; }
Manage the simple input ports of a component.
The trait had one method that allows to get the syncsender of the port "port"
Required Methods
fn get_sender(&self, port: String) -> Option<Box<Any + Send + 'static>>
Get the SyncSender of the port "port".
If the port exists, this method return a SyncSender casted as a Box
Example
let sync_sender_boxed = inputs.get_sender("input").unwrap(); let sync_sender: SyncSender<i32> = downcast(sync_sender_boxed);