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]

[src]

Create a new relm stream handler.

[src]

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.

[src]

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

[src]

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

[src]

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

[src]

Spawn a future in the tokio event loop.

[src]

Get the handle of this stream.

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more