pub struct DeviceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DeviceSynchronousProxy
impl DeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DeviceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DeviceEvent, 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 get_identifier(
&self,
___deadline: MonotonicInstant,
) -> Result<Option<String>, Error>
pub fn get_identifier( &self, ___deadline: MonotonicInstant, ) -> Result<Option<String>, Error>
Returns an identifier for the camera. If present, identical devices on different systems will have the same identifier. Clients may use this to determine if additional semantics known a priori for a given device apply to the current camera.
Sourcepub fn get_configurations(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<Configuration>, Error>
pub fn get_configurations( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<Configuration>, Error>
Returns a list of configurations supported by the camera. All cameras will have at least one configuration. The values returned are immutable - they will not change for the lifetime of the client’s connection to the Camera.
Sourcepub fn get_configurations2(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<Configuration2>, Error>
pub fn get_configurations2( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<Configuration2>, Error>
Returns a list of configurations supported by the camera. All cameras will have at least one configuration. The values returned are immutable - they will not change for the lifetime of the client’s connection to the Camera.
Sourcepub fn watch_current_configuration(
&self,
___deadline: MonotonicInstant,
) -> Result<u32, Error>
pub fn watch_current_configuration( &self, ___deadline: MonotonicInstant, ) -> Result<u32, Error>
Returns the index of the current configuration when it has changed from a previously returned configuration, or is called by a client for the first time.
Sourcepub fn set_current_configuration(&self, index: u32) -> Result<(), Error>
pub fn set_current_configuration(&self, index: u32) -> Result<(), Error>
Sets the configuration using the provided index. Calling this method disconnects any existing Stream clients associated with this camera. An epitaph of ZX_OK will be sent for any connected Stream clients on closing.
Sourcepub fn watch_mute_state(
&self,
___deadline: MonotonicInstant,
) -> Result<(bool, bool), Error>
pub fn watch_mute_state( &self, ___deadline: MonotonicInstant, ) -> Result<(bool, bool), Error>
Returns the camera’s current mute state when it has changed from a previously returned state, or is called by a client for the first time. A camera may be muted using SetSoftwareMuteState or by a physical switch. If either muted mode is active, stream clients associated with this physical camera will stop receiving new frames.
Sourcepub fn set_software_mute_state(
&self,
muted: bool,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn set_software_mute_state( &self, muted: bool, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Sets the current camera’s software mute state. When transitioning to the muted state, this method returns when the camera has successfully ceased sending new frames to stream clients. When transitioning to the unmuted state, this method returns immediately.
Sourcepub fn connect_to_stream(
&self,
index: u32,
request: ServerEnd<Stream_Marker>,
) -> Result<(), Error>
pub fn connect_to_stream( &self, index: u32, request: ServerEnd<Stream_Marker>, ) -> Result<(), Error>
Connects to the Stream at the provided index. If any clients already exist for this stream, the request is closed with the ZX_ERR_ALREADY_BOUND epitaph.
Sourcepub fn rebind(&self, request: ServerEnd<DeviceMarker>) -> Result<(), Error>
pub fn rebind(&self, request: ServerEnd<DeviceMarker>) -> Result<(), Error>
Request another connection to this Device. This allows a client to delegate different operations to different coordinated clients.
Trait Implementations§
Source§impl Debug for DeviceSynchronousProxy
impl Debug for DeviceSynchronousProxy
Source§impl SynchronousProxy for DeviceSynchronousProxy
impl SynchronousProxy for DeviceSynchronousProxy
Source§type Proxy = DeviceProxy
type Proxy = DeviceProxy
Source§type Protocol = DeviceMarker
type Protocol = DeviceMarker
Proxy
controls.