Struct bifrost::Relay[][src]

pub struct Relay<Context: Send> { /* fields omitted */ }

A structure used to send events and commands to a Dispatcher.

Relays are lightweight, cloneable and can be sent across threads and channels

You can get a relay from a Dispatcher with the create_relay method


let relay = dispatcher.create_relay();

Or by cloning another relay

let relay_clone = relay.clone();

Methods

impl<Context: Send> Relay<Context>
[src]

Trait Implementations

impl<Context: Send> Clone for Relay<Context>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<Context> Send for Relay<Context>

impl<Context> !Sync for Relay<Context>