[][src]Struct relm::Relm

pub struct Relm<UPDATE> where
    UPDATE: Update
{ /* fields omitted */ }

Handle event stream to send messages to the update() method.

Methods

impl<UPDATE> Relm<UPDATE> where
    UPDATE: Update
[src]

pub fn new(stream: EventStream<<UPDATE as Update>::Msg>) -> Relm<UPDATE>[src]

Create a new relm stream handler.

pub fn stream(&self) -> &EventStream<<UPDATE as Update>::Msg>[src]

Get the event stream of this stream. This is used internally by the library.

Trait Implementations

impl<UPDATE> Clone for Relm<UPDATE> where
    UPDATE: Update
[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<UPDATE> !Send for Relm<UPDATE>

impl<UPDATE> !Sync for Relm<UPDATE>

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

The type returned in the event of a conversion error.