[−][src]Struct relm::Channel
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.
Auto Trait Implementations
impl<MSG> RefUnwindSafe for Channel<MSG> where
MSG: RefUnwindSafe,
MSG: RefUnwindSafe,
impl<MSG> Send for Channel<MSG> where
MSG: Send,
MSG: Send,
impl<MSG> Sync for Channel<MSG> where
MSG: Sync,
MSG: Sync,
impl<MSG> Unpin for Channel<MSG> where
MSG: Unpin,
MSG: Unpin,
impl<MSG> UnwindSafe for Channel<MSG> where
MSG: UnwindSafe,
MSG: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,