pub trait CommandCustomHeader {
    // Required method
    fn to_map(&self) -> Option<HashMap<String, String>>;

    // Provided method
    fn check_fields(&self) -> Result<(), Error> { ... }
}

Required Methods§

source

fn to_map(&self) -> Option<HashMap<String, String>>

Converts the implementing type to a map.

Returns an Option that contains a HashMap of string keys and string values,
representing the implementing type’s fields.
If the conversion is successful, a non-empty map is returned.
If the conversion fails, None is returned.

Provided Methods§

source

fn check_fields(&self) -> Result<(), Error>

Checks the fields of the implementing type.

Returns a Result indicating whether the fields are valid or not.
If the fields are valid, the Ok variant is returned with an empty () value.
If the fields are invalid, an Err variant is returned with an associated Error value.

Implementors§

source§

impl CommandCustomHeader for rocketmq_remoting::protocol::header::broker::broker_heartbeat_request_header::BrokerHeartbeatRequestHeader

source§

impl CommandCustomHeader for GetRouteInfoRequestHeader

source§

impl CommandCustomHeader for rocketmq_remoting::protocol::header::namesrv::broker_request::BrokerHeartbeatRequestHeader

source§

impl CommandCustomHeader for GetBrokerMemberGroupRequestHeader

source§

impl CommandCustomHeader for UnRegisterBrokerRequestHeader

source§

impl CommandCustomHeader for NotifyMinBrokerIdChangeRequestHeader

source§

impl CommandCustomHeader for DeleteKVConfigRequestHeader

source§

impl CommandCustomHeader for GetKVConfigRequestHeader

source§

impl CommandCustomHeader for GetKVConfigResponseHeader

source§

impl CommandCustomHeader for GetKVListByNamespaceRequestHeader

source§

impl CommandCustomHeader for PutKVConfigRequestHeader

source§

impl CommandCustomHeader for AddWritePermOfBrokerRequestHeader

source§

impl CommandCustomHeader for AddWritePermOfBrokerResponseHeader

source§

impl CommandCustomHeader for WipeWritePermOfBrokerRequestHeader

source§

impl CommandCustomHeader for WipeWritePermOfBrokerResponseHeader

source§

impl CommandCustomHeader for QueryDataVersionRequestHeader

source§

impl CommandCustomHeader for QueryDataVersionResponseHeader

source§

impl CommandCustomHeader for RegisterBrokerRequestHeader

source§

impl CommandCustomHeader for RegisterBrokerResponseHeader

source§

impl CommandCustomHeader for DeleteTopicFromNamesrvRequestHeader

source§

impl CommandCustomHeader for GetTopicsByClusterRequestHeader

source§

impl CommandCustomHeader for RegisterTopicRequestHeader