pub struct ControllerSynchronousProxy { /* private fields */ }
Implementations§
source§impl ControllerSynchronousProxy
impl ControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ControllerEvent, 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 start(
&self,
args: StartChildArgs,
execution_controller: ServerEnd<ExecutionControllerMarker>,
___deadline: MonotonicInstant,
) -> Result<ControllerStartResult, Error>
pub fn start( &self, args: StartChildArgs, execution_controller: ServerEnd<ExecutionControllerMarker>, ___deadline: MonotonicInstant, ) -> Result<ControllerStartResult, Error>
Start the component, optionally providing additional handles to be given to the component. Returns INSTANCE_ALREADY_RUNNING if the instance is currently running.
sourcepub fn is_started(
&self,
___deadline: MonotonicInstant,
) -> Result<ControllerIsStartedResult, Error>
pub fn is_started( &self, ___deadline: MonotonicInstant, ) -> Result<ControllerIsStartedResult, Error>
Returns true if this instance is currently running.
sourcepub fn get_exposed_dictionary(
&self,
___deadline: MonotonicInstant,
) -> Result<ControllerGetExposedDictionaryResult, Error>
pub fn get_exposed_dictionary( &self, ___deadline: MonotonicInstant, ) -> Result<ControllerGetExposedDictionaryResult, Error>
Returns the dictionary containing the component’s exposed capabilities.
sourcepub fn destroy(
&self,
___deadline: MonotonicInstant,
) -> Result<ControllerDestroyResult, Error>
pub fn destroy( &self, ___deadline: MonotonicInstant, ) -> Result<ControllerDestroyResult, Error>
Destroys this component. When this method returns, either:
- Ok was returned, indicating destruction has begun.
- An error was returned, and destruction will not be attempted.
If Ok was returned, destruction will proceed in the background, but it hasn’t necessarily completed yet. When it completes, the framework will close this [Controller] channel.
Errors:
ACCESS_DENIED
: Destruction of this component is not allowed. Currently, this can happen if the component is a static child of its parent.
Trait Implementations§
source§impl Debug for ControllerSynchronousProxy
impl Debug for ControllerSynchronousProxy
source§impl SynchronousProxy for ControllerSynchronousProxy
impl SynchronousProxy for ControllerSynchronousProxy
§type Proxy = ControllerProxy
type Proxy = ControllerProxy
The async proxy for the same protocol.
§type Protocol = ControllerMarker
type Protocol = ControllerMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for ControllerSynchronousProxy
impl RefUnwindSafe for ControllerSynchronousProxy
impl Send for ControllerSynchronousProxy
impl Sync for ControllerSynchronousProxy
impl Unpin for ControllerSynchronousProxy
impl UnwindSafe for ControllerSynchronousProxy
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