IEC60870_RawMessageHandler

Type Alias IEC60870_RawMessageHandler 

Source
pub type IEC60870_RawMessageHandler = Option<unsafe extern "C" fn(parameter: *mut c_void, msg: *mut u8, msgSize: c_int, sent: bool)>;
Expand description

Callback handler for sent and received messages

This callback handler provides access to the raw message buffer of received or sent messages. It can be used for debugging purposes. Usually it is not used nor required for applications.

§Arguments

  • parameter - user provided parameter
  • msg - the message buffer
  • msgSize - size of the message
  • sent - indicates if the message was sent or received

Aliased Type§

pub enum IEC60870_RawMessageHandler {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut u8, i32, bool)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut u8, i32, bool))

Some value of type T.