pub struct MagnifierProxy { /* private fields */ }
Implementations§
source§impl MagnifierProxy
impl MagnifierProxy
sourcepub fn take_event_stream(&self) -> MagnifierEventStream
pub fn take_event_stream(&self) -> MagnifierEventStream
Get a Stream of events from the remote end of the Magnifier protocol
Panics
Panics if the event stream was already taken.
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.
Trait Implementations§
source§impl Clone for MagnifierProxy
impl Clone for MagnifierProxy
source§fn clone(&self) -> MagnifierProxy
fn clone(&self) -> MagnifierProxy
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 moresource§impl Debug for MagnifierProxy
impl Debug for MagnifierProxy
source§impl MagnifierProxyInterface for MagnifierProxy
impl MagnifierProxyInterface for MagnifierProxy
fn register_handler( &self, handler: ClientEnd<MagnificationHandlerMarker> ) -> Result<(), Error>
source§impl Proxy for MagnifierProxy
impl Proxy for MagnifierProxy
§type Protocol = MagnifierMarker
type Protocol = MagnifierMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more