Struct relm_core::Channel
[−]
[src]
pub struct Channel<MSG> { /* fields omitted */ }
A channel to send a message to a relm widget from another thread.
Methods
impl<MSG> Channel<MSG>
[src]
pub fn new<CALLBACK: FnMut(MSG) + 'static>(
callback: CALLBACK
) -> (Self, Sender<MSG>)
[src]
callback: CALLBACK
) -> (Self, Sender<MSG>)
Create a new channel with a callback that will be called when a message is received.