pub fn add_stream_controller_capability<SC: StreamController + Clone + Send + 'static>(
    fs: &mut ServiceFs<ServiceObj<'_, ()>>,
    controller: SC,
) {
    fs.dir("svc").add_fidl_service({
        move |s| {
            fasync::Task::spawn(handle_stream_controller_connection(s, controller.clone())).detach()
        }
    });
}
/// Defines a FIDL service implementation for the `a2dp.Controller` capability and spawns a
/// task to process incoming requests. Protocol requests will be handled by the task and
/// use the provided `controller` to manipulate A2DP streaming state.
Defines a FIDL service implementation for the `a2dp.Controller` capability and spawns a
task to process incoming requests. Protocol requests will be handled by the task and
use the provided `controller` to manipulate A2DP streaming state.
Defines a FIDL service implementation for the ` a2dp . Controller ` capability and spawns a task to process incoming requests . Protocol requests will be handled by the task and use the provided ` controller ` to manipulate A2DP streaming state .
pub fn add_stream_controller_capability<SC: StreamController + Clone + Send + 'static>(
    fs: &mut ServiceFs<ServiceObj<'_, ()>>,
    controller: SC,
) {
    fs.dir("svc").add_fidl_service({
        move |s| {
            fasync::Task::spawn(handle_stream_controller_connection(s, controller.clone())).detach()
        }
    });
}
pub fn add_stream_controller_capability < SC : StreamController + Clone + Send + ' static > ( fs : & mut ServiceFs < ServiceObj < ' _ , ( ) > > , controller : SC , ) { fs . dir ( " " ) . add_fidl_service ( { move | s | { fasync :: Task :: spawn ( handle_stream_controller_connection ( s , controller . clone ( ) ) ) . detach ( ) } } ) ; }
Defines a FIDL service implementation for the `a2dp.Controller` capability and spawns a
task to process incoming requests.
Defines a FIDL service implementation for the ` a2dp . Controller ` capability and spawns a task to process incoming requests .
fs
&mut ServiceFs<ServiceObj<'_, ()>>
controller
SC
fs
&mut ServiceFs<ServiceObj<'_, ()>>
controller
SC