Struct sacn::DmxSource [] [src]

pub struct DmxSource { /* fields omitted */ }

A DMX over sACN sender.

DmxSource is used for sending sACN packets over ethernet.

Each universe will be sent to a dedicated multicast address "239.255.{universe_high_byte}.{universe_low_byte}".

Examples

use sacn::DmxSource;

let mut dmx_source = DmxSource::new("Controller").unwrap();

dmx_source.send(1, &[100, 100, 100, 100, 100, 100]);
dmx_source.terminate_stream(1);

Methods

impl DmxSource
[src]

Constructs a new DmxSource with DMX START code set to 0.

Constructs a new DmxSource with DMX START code set to 0 with specified CID.

Sends DMX data to specified universe.

Sends DMX data to specified universe with specified priority.

Terminates a universe stream.

Terminates a stream to a specified universe by sending three packages with Stream_Terminated flag set to 1.

Returns the ACN CID device identifier of the DmxSource.

Sets the ACN CID device identifier.

Returns the ACN source name.

Sets ACN source name.

Returns if DmxSource is in preview mode.

Sets the DmxSource to preview mode.

All packets will be sent with Preview_Data flag set to 1.

Returns the current DMX START code.

Sets the DMX START code.

Sets the multicast time to live.

Returns the multicast time to live of the socket.

Sets if multicast loop is enabled.

Returns if multicast loop of the socket is enabled.

Trait Implementations

impl Debug for DmxSource
[src]

Formats the value using the given formatter.