pub trait Protocol: ProtocolField {
// Required methods
unsafe extern "C" fn dissect_main(
__wsdf_tvb: *mut tvbuff,
__wsdf_pinfo: *mut _packet_info,
__wsdf_tree: *mut _proto_node,
__wsdf_data: *mut c_void,
) -> c_int;
extern "C" fn proto_register();
extern "C" fn proto_reg_handoff();
}
Expand description
A data type which represents the root of the protocol. Not intended for public use.
Required Methods§
unsafe extern "C" fn dissect_main( __wsdf_tvb: *mut tvbuff, __wsdf_pinfo: *mut _packet_info, __wsdf_tree: *mut _proto_node, __wsdf_data: *mut c_void, ) -> c_int
extern "C" fn proto_register()
extern "C" fn proto_reg_handoff()
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.