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 moreAuto Trait Implementations§
impl Freeze for FocusChainProviderRequestStreamHandler
impl !RefUnwindSafe for FocusChainProviderRequestStreamHandler
impl Send for FocusChainProviderRequestStreamHandler
impl Sync for FocusChainProviderRequestStreamHandler
impl Unpin for FocusChainProviderRequestStreamHandler
impl !UnwindSafe for FocusChainProviderRequestStreamHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)