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§
Sourcefn dll_event(&self) -> DllCsEvent
fn dll_event(&self) -> DllCsEvent
Determines the DLL event associated with this frame.
Sourcefn nmt_event(&self) -> Option<NmtEvent>
fn nmt_event(&self) -> Option<NmtEvent>
Determines the NMT event associated with this frame, if any.
Sourcefn handle_cn(&self, node: &ControlledNode<'_>) -> Option<PowerlinkFrame>
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".