pub async fn create_receptor_for_setting_type(
    message_hub: &Delegate<ServicePayload, ServiceAddress, ServiceRole>,
    setting_type: SettingType,
) -> Receptor<ServicePayload, ServiceAddress, ServiceRole> {
    message_hub
        .create(MessengerType::Addressable(ServiceAddress::Handler(setting_type)))
        .await
        .expect("Unable to create receptor")
        .1
}
// Given a `setting_type` and `message_hub`, creates a receptor from the message hub with the address
// of the setting type.
Given a `setting_type` and `message_hub`, creates a receptor from the message hub with the address
of the setting type.
Given a ` setting_type ` and ` message_hub ` creates a receptor from the message hub with the address of the setting type .
pub async fn create_receptor_for_setting_type(
    message_hub: &Delegate<ServicePayload, ServiceAddress, ServiceRole>,
    setting_type: SettingType,
) -> Receptor<ServicePayload, ServiceAddress, ServiceRole> {
    message_hub
        .create(MessengerType::Addressable(ServiceAddress::Handler(setting_type)))
        .await
        .expect("Unable to create receptor")
        .1
}
pub async fn create_receptor_for_setting_type ( message_hub : & Delegate < ServicePayload , ServiceAddress , ServiceRole > , setting_type : SettingType , ) -> Receptor < ServicePayload , ServiceAddress , ServiceRole > { message_hub . create ( MessengerType :: Addressable ( ServiceAddress :: Handler ( setting_type ) ) ) . await . expect ( " " ) . 1 }
Given a `setting_type` and `message_hub`, creates a receptor from the message hub with the address
of the setting type.
Given a ` setting_type ` and ` message_hub ` creates a receptor from the message hub with the address of the setting type .
message_hub
&Delegate<ServicePayload, ServiceAddress, ServiceRole>
setting_type
SettingType
message_hub
&Delegate<ServicePayload, ServiceAddress, ServiceRole>
setting_type
SettingType