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: Time) -> Result<ControllerEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> 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: Time
) -> Result<ControllerStartResult, Error>
pub fn start( &self, args: StartChildArgs, execution_controller: ServerEnd<ExecutionControllerMarker>, ___deadline: Time ) -> 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: Time
) -> Result<ControllerIsStartedResult, Error>
pub fn is_started( &self, ___deadline: Time ) -> Result<ControllerIsStartedResult, Error>
Returns true if this instance is currently running.
sourcepub fn get_exposed_dict(&self, dict: ServerEnd<DictMarker>) -> Result<(), Error>
pub fn get_exposed_dict(&self, dict: ServerEnd<DictMarker>) -> Result<(), Error>
Returns the dictionary containing the component’s exposed capabilities.
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 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