Struct ether_dream_dac_emulator::broadcaster::Broadcaster [] [src]

pub struct Broadcaster { /* fields omitted */ }

The broadcasting side of the DAC.

Once run is called, the broadcaster will block and loop at a rate of once-per-second, broadcasting the current state of the DAC on each iteration.

Methods

impl Broadcaster
[src]

[src]

Create a new Broadcaster initialised with the given DAC state.

Produces an io::Error if creating the UDP socket fails or if enabling broadcast fails.

[src]

Creates a DacBroadcast from the current known DAC state.

This is used within the send method.

[src]

Sends a single broadcast message over the inner UDP socket.

[src]

Run the Broadcaster.

The broadcaster will block on the given receiver, waiting to process Messages.

On each Message::Second received, the Broadcaster will send a message over UDP.

On each Message::Dac, the Broadcaster will update the current DAC state.

[src]

Consumes the Broadcaster and calls the run method on a separate thread.

Trait Implementations

Auto Trait Implementations

impl Send for Broadcaster

impl Sync for Broadcaster