pub struct MagnifierSynchronousProxy { /* private fields */ }
Implementations§
source§impl MagnifierSynchronousProxy
impl MagnifierSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<MagnifierEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<MagnifierEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn register_handler(
&self,
handler: ClientEnd<MagnificationHandlerMarker>
) -> Result<(), Error>
pub fn register_handler( &self, handler: ClientEnd<MagnificationHandlerMarker> ) -> Result<(), Error>
Registers the camera control to be used for applying magnification. If a previous handler had been registered, that handler is dropped.