Struct relm::Sender[][src]

pub struct Sender<MSG> { /* fields omitted */ }

A wrapper over a std::sync::mpsc::Sender to wakeup the glib event loop when sending a message.

Implementations

impl<MSG> Sender<MSG>[src]

pub fn send(&self, msg: MSG) -> Result<(), SendError<MSG>>[src]

Send a message and wakeup the event loop.

Trait Implementations

impl<MSG> Clone for Sender<MSG>[src]

Auto Trait Implementations

impl<MSG> !RefUnwindSafe for Sender<MSG>[src]

impl<MSG> Send for Sender<MSG> where
    MSG: Send
[src]

impl<MSG> !Sync for Sender<MSG>[src]

impl<MSG> Unpin for Sender<MSG>[src]

impl<MSG> !UnwindSafe for Sender<MSG>[src]

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.