pub struct FocusChainProviderRequestStreamHandler { /* private fields */ }
Expand description
Handles streams of requests from FocusChainProvider
clients, responding to them with the
latest value from the corresponding FocusChainProviderPublisher
.
Instantiate using make_publisher_and_stream_handler()
.
Implementations§
source§impl FocusChainProviderRequestStreamHandler
impl FocusChainProviderRequestStreamHandler
sourcepub fn handle_request_stream(
&self,
stream: FocusChainProviderRequestStream
) -> Task<()>
pub fn handle_request_stream( &self, stream: FocusChainProviderRequestStream ) -> Task<()>
Handles a fidl_fuchsia_ui_focus::FocusChainProviderRequestStream
for a single client,
spawning a new local Task
.
sourcepub fn subscriber_count(&self) -> usize
pub fn subscriber_count(&self) -> usize
Returns the number of active subscribers. Mostly useful for tests.
Trait Implementations§
source§impl Clone for FocusChainProviderRequestStreamHandler
impl Clone for FocusChainProviderRequestStreamHandler
source§fn clone(&self) -> FocusChainProviderRequestStreamHandler
fn clone(&self) -> FocusChainProviderRequestStreamHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more