Struct relm_state::EventStream [] [src]

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

A stream of messages to be used for widget/signal communication and inter-widget communication.

Methods

impl<MSG> EventStream<MSG>
[src]

[src]

Create a new event stream.

[src]

Close the event stream, i.e. stop processing messages.

[src]

Send the event message to the stream and the observers.

[src]

Lock the stream (don't emit message) until the Lock goes out of scope.

[src]

Add an observer to the event stream. This callback will be called every time a message is emmited.

[src]

Add a callback to the event stream. This is the main callback and received a owned version of the message, in contrast to observe().

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<MSG> Send for EventStream<MSG> where
    MSG: Send

impl<MSG> Sync for EventStream<MSG> where
    MSG: Sync