pub fn new(
        name: String,
        appearance: Appearance,
        stash: Stash,
        inspect: inspect::Node,
        gas_channel_sender: mpsc::Sender<LocalServiceDelegateRequest>,
    ) -> HostDispatcher {
        let hd = HostDispatcherState {
            active_id: None,
            host_devices: HashMap::new(),
            name,
            appearance,
            input: InputCapabilityType::None,
            output: OutputCapabilityType::None,
            peers: HashMap::new(),
            gas_channel_sender,
            stash,
            discovery: None,
            discoverable: None,
            pairing_delegate: None,
            event_listeners: vec![],
            host_requests: Slab::new(),
            inspect: HostDispatcherInspect::new(inspect),
        };
        HostDispatcher { state: Arc::new(RwLock::new(hd)) }
    }
/// The HostDispatcher will forward all Generic Access Service requests to the mpsc::Receiver
/// end of |gas_channel_sender|. It is the responsibility of this function's caller to ensure
/// that these requests are handled. This can be done by passing the mpsc::Receiver into a
/// GenericAccessService struct and ensuring its run method is scheduled.
The HostDispatcher will forward all Generic Access Service requests to the mpsc::Receiver
end of |gas_channel_sender|. It is the responsibility of this function's caller to ensure
that these requests are handled. This can be done by passing the mpsc::Receiver into a
GenericAccessService struct and ensuring its run method is scheduled.
The HostDispatcher will forward all Generic Access Service requests to the mpsc :: Receiver end of |gas_channel_sender| . It is the responsibility of this function ' s caller to ensure that these requests are handled . This can be done by passing the mpsc :: Receiver into a GenericAccessService struct and ensuring its run method is scheduled .
pub fn new(
        name: String,
        appearance: Appearance,
        stash: Stash,
        inspect: inspect::Node,
        gas_channel_sender: mpsc::Sender<LocalServiceDelegateRequest>,
    ) -> HostDispatcher {
        let hd = HostDispatcherState {
            active_id: None,
            host_devices: HashMap::new(),
            name,
            appearance,
            input: InputCapabilityType::None,
            output: OutputCapabilityType::None,
            peers: HashMap::new(),
            gas_channel_sender,
            stash,
            discovery: None,
            discoverable: None,
            pairing_delegate: None,
            event_listeners: vec![],
            host_requests: Slab::new(),
            inspect: HostDispatcherInspect::new(inspect),
        };
        HostDispatcher { state: Arc::new(RwLock::new(hd)) }
    }
pub fn new ( name : String , appearance : Appearance , stash : Stash , inspect : inspect :: Node , gas_channel_sender : mpsc :: Sender < LocalServiceDelegateRequest > , ) -> HostDispatcher { let hd = HostDispatcherState { active_id : None , host_devices : HashMap :: new ( ) , name , appearance , input : InputCapabilityType :: None , output : OutputCapabilityType :: None , peers : HashMap :: new ( ) , gas_channel_sender , stash , discovery : None , discoverable : None , pairing_delegate : None , event_listeners : vec ! [ ] , host_requests : Slab :: new ( ) , inspect : HostDispatcherInspect :: new ( inspect ) , } ; HostDispatcher { state : Arc :: new ( RwLock :: new ( hd ) ) } }
The HostDispatcher will forward all Generic Access Service requests to the mpsc::Receiver
end of |gas_channel_sender|.
The HostDispatcher will forward all Generic Access Service requests to the mpsc :: Receiver end of |gas_channel_sender| .
name
String
appearance
Appearance
stash
Stash
inspect
inspect::Node
gas_channel_sender
mpsc::Sender<LocalServiceDelegateRequest>