DmxResponderHandler

Trait DmxResponderHandler 

Source
pub trait DmxResponderHandler {
    type Error;

    // Provided methods
    fn handle_rdm(
        &mut self,
        _request: &RdmRequestData,
        _context: &mut DmxReceiverContext<'_>,
    ) -> Result<RdmResult, Self::Error> { ... }
    fn handle_dmx(
        &mut self,
        _dmx_frame: DmxFrame,
        _context: &mut DmxReceiverContext<'_>,
    ) -> Result<(), Self::Error> { ... }
}
Expand description

A handler for dmx and custom rdm packages.

Required Associated Types§

Provided Methods§

Source

fn handle_rdm( &mut self, _request: &RdmRequestData, _context: &mut DmxReceiverContext<'_>, ) -> Result<RdmResult, Self::Error>

Handle rdm requests that aren’t handled by the RdmResponder itself.

Source

fn handle_dmx( &mut self, _dmx_frame: DmxFrame, _context: &mut DmxReceiverContext<'_>, ) -> Result<(), Self::Error>

Handle all received frames that have a different start code than 0xCC (the rdm start code). The first byte is the start code. If start code is 0x00 it’s a DMX Package.

Implementors§