[][src]Struct relm::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> Unpin for Channel<MSG> where
    MSG: Unpin

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

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

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

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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