Skip to main content

FrameHandler

Trait FrameHandler 

Source
pub trait FrameHandler {
    // Required methods
    fn dll_event(&self) -> DllCsEvent;
    fn nmt_event(&self) -> Option<NmtEvent>;
    fn handle_cn(&self, node: &ControlledNode<'_>) -> Option<PowerlinkFrame>;
}
Expand description

A trait to handle the specific logic for each POWERLINK frame type.

Required Methods§

Source

fn dll_event(&self) -> DllCsEvent

Determines the DLL event associated with this frame.

Source

fn nmt_event(&self) -> Option<NmtEvent>

Determines the NMT event associated with this frame, if any.

Source

fn handle_cn(&self, node: &ControlledNode<'_>) -> Option<PowerlinkFrame>

Processes the frame within the context of a ControlledNode and builds a response frame if required.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§