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]

[src]

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

[src]

Consturcts a new DmxSource with binding to the supplied ip and a DMX START code set to 0.

[src]

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

[src]

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

[src]

Sends DMX data to specified universe.

[src]

Sends DMX data to specified universe with specified priority.

[src]

Terminates a universe stream.

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

[src]

Returns the ACN CID device identifier of the DmxSource.

[src]

Sets the ACN CID device identifier.

[src]

Returns the ACN source name.

[src]

Sets ACN source name.

[src]

Returns if DmxSource is in preview mode.

[src]

Sets the DmxSource to preview mode.

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

[src]

Returns the current DMX START code.

[src]

Sets the DMX START code.

[src]

Sets the multicast time to live.

[src]

Returns the multicast time to live of the socket.

[src]

Sets if multicast loop is enabled.

[src]

Returns if multicast loop of the socket is enabled.

Trait Implementations

impl Debug for DmxSource
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DmxSource

impl !Sync for DmxSource