pub struct Proxy_SynchronousProxy { /* private fields */ }Implementations§
Source§impl Proxy_SynchronousProxy
impl Proxy_SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<Proxy_Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<Proxy_Event, 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 describe(
&self,
___deadline: MonotonicInstant,
) -> Result<ProxyDescription, Error>
pub fn describe( &self, ___deadline: MonotonicInstant, ) -> Result<ProxyDescription, Error>
Identity, resources, limits, and digests of this proxy instance.
Sourcepub fn open_session(
&self,
context: &RunContext,
mode: SessionMode,
expectations: &Expectations,
allowlist: &[AccessRule],
session: ServerEnd<SessionMarker>,
___deadline: MonotonicInstant,
) -> Result<ProxyOpenSessionResult, Error>
pub fn open_session( &self, context: &RunContext, mode: SessionMode, expectations: &Expectations, allowlist: &[AccessRule], session: ServerEnd<SessionMarker>, ___deadline: MonotonicInstant, ) -> Result<ProxyOpenSessionResult, Error>
Opens a session with an exact allowlist. Stale expectations and rejected allowlists create no session and touch no hardware.
Trait Implementations§
Source§impl Debug for Proxy_SynchronousProxy
impl Debug for Proxy_SynchronousProxy
Source§impl From<Channel> for Proxy_SynchronousProxy
Available on Fuchsia only.
impl From<Channel> for Proxy_SynchronousProxy
Available on Fuchsia only.
Source§impl From<Proxy_SynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<Proxy_SynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: Proxy_SynchronousProxy) -> Self
fn from(value: Proxy_SynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for Proxy_SynchronousProxy
Available on Fuchsia only.
impl FromClient for Proxy_SynchronousProxy
Available on Fuchsia only.
Source§type Protocol = Proxy_Marker
type Protocol = Proxy_Marker
The protocol.
Source§fn from_client(value: ClientEnd<Proxy_Marker>) -> Self
fn from_client(value: ClientEnd<Proxy_Marker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for Proxy_SynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for Proxy_SynchronousProxy
Available on Fuchsia only.
Source§type Proxy = Proxy_Proxy
type Proxy = Proxy_Proxy
The async proxy for the same protocol.
Source§type Protocol = Proxy_Marker
type Protocol = Proxy_Marker
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 Proxy_SynchronousProxy
impl RefUnwindSafe for Proxy_SynchronousProxy
impl Send for Proxy_SynchronousProxy
impl Sync for Proxy_SynchronousProxy
impl Unpin for Proxy_SynchronousProxy
impl UnsafeUnpin for Proxy_SynchronousProxy
impl UnwindSafe for Proxy_SynchronousProxy
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