pub type InjectorViewportSubscriber = Subscriber<InjectorViewportSpec, SetupWatchViewportResponder, Box<dyn Fn(&InjectorViewportSpec, SetupWatchViewportResponder) -> bool + Send + Sync>>;
Expand description
Used to implement fuchsia.ui.pointerinjector.configuration.Setup.WatchViewport().
Aliased Type§
struct InjectorViewportSubscriber { /* private fields */ }
Implementations
Source§impl<S, O, F> Subscriber<S, O, F>
impl<S, O, F> Subscriber<S, O, F>
Sourcepub fn register(&self, observation: O) -> Result<(), HangingGetServerError>
pub fn register(&self, observation: O) -> Result<(), HangingGetServerError>
Register a new observation.
Errors occur when:
- A Subscriber attempts to register an observation when there is already an outstanding observation waiting on updates.
Returns observation
on error.