ProtocolField

Trait ProtocolField 

Source
pub trait ProtocolField {
    // Required methods
    fn dissect<'a>(
        __wsdf_start: c_int,
        __wsdf_tvb: *mut tvbuff,
        __wsdf_parent: *mut _proto_node,
        __wsdf_prefix: &str,
        __wsdf_dispatch: VariantDispatch,
        __wsdf_subtree_label: SubtreeLabel,
        __wsdf_tvb_buf: &'a [u8],
        __wsdf_pinfo: *mut _packet_info,
        __wsdf_proto_tree_root: *mut _proto_node,
        __wsdf_fields_store: &mut FieldsStore<'a>,
    ) -> c_int;
    fn register(
        __wsdf_prefix: &str,
        __wsdf_proto_id: c_int,
        __wsdf_field_ident: FieldIdent,
        __wsdf_field_blurb: FieldBlurb,
    );
    fn ett() -> c_int;
    fn proto_id() -> &'static mut c_int;
    fn hf_map(op: HfMapOp<'_>) -> Option<c_int>;
    fn subdissector_map(op: SubdissectorMapOp<'_>) -> Option<dissector_table_t>;
}
Expand description

A data type whose fields can be registered in Wireshark and dissected. Not intended for public use.

Required Methods§

Source

fn dissect<'a>( __wsdf_start: c_int, __wsdf_tvb: *mut tvbuff, __wsdf_parent: *mut _proto_node, __wsdf_prefix: &str, __wsdf_dispatch: VariantDispatch, __wsdf_subtree_label: SubtreeLabel, __wsdf_tvb_buf: &'a [u8], __wsdf_pinfo: *mut _packet_info, __wsdf_proto_tree_root: *mut _proto_node, __wsdf_fields_store: &mut FieldsStore<'a>, ) -> c_int

Source

fn register( __wsdf_prefix: &str, __wsdf_proto_id: c_int, __wsdf_field_ident: FieldIdent, __wsdf_field_blurb: FieldBlurb, )

Source

fn ett() -> c_int

Source

fn proto_id() -> &'static mut c_int

Source

fn hf_map(op: HfMapOp<'_>) -> Option<c_int>

Source

fn subdissector_map(op: SubdissectorMapOp<'_>) -> Option<dissector_table_t>

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.

Implementors§