Struct relm::Relm [] [src]

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

Handle connection of futures to send messages to the update() method.

Methods

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

Create a new relm stream handler.

Connect a Future or a Stream called to_stream to send the message success_callback in case of success and failure_callback in case of failure.

Note

This function does not spawn the future. You'll usually want to use Relm::connect_exec() to both connect and spawn the future.

This function is the same as Relm::connect() except it does not take a failure_callback; hence, it ignores the errors.

Connect the future to_stream and spawn it on the tokio main loop.

Connect the future to_stream and spawn it on the tokio main loop, ignoring any error.

Spawn a future in the tokio event loop.

Get the handle of this stream.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more