[][src]Struct relm_core::Channel

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]

Create a new channel with a callback that will be called when a message is received.

Auto Trait Implementations

impl<MSG> Send for Channel<MSG> where
    MSG: Send

impl<MSG> Sync for Channel<MSG> where
    MSG: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]