pub struct DevToolsListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DevToolsListenerSynchronousProxy
impl DevToolsListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DevToolsListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DevToolsListenerEvent, 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 on_context_dev_tools_available(
&self,
listener: ServerEnd<DevToolsPerContextListenerMarker>,
) -> Result<(), Error>
pub fn on_context_dev_tools_available( &self, listener: ServerEnd<DevToolsPerContextListenerMarker>, ) -> Result<(), Error>
Called when the DevTools service is available on a new [Context
].
listener
: Channel over which DevTools events for the new [Context
] will be delivered. This channel will disconnect when the [Context
] is destroyed.
Trait Implementations§
Source§impl SynchronousProxy for DevToolsListenerSynchronousProxy
impl SynchronousProxy for DevToolsListenerSynchronousProxy
Source§type Proxy = DevToolsListenerProxy
type Proxy = DevToolsListenerProxy
The async proxy for the same protocol.
Source§type Protocol = DevToolsListenerMarker
type Protocol = DevToolsListenerMarker
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 DevToolsListenerSynchronousProxy
impl RefUnwindSafe for DevToolsListenerSynchronousProxy
impl Send for DevToolsListenerSynchronousProxy
impl Sync for DevToolsListenerSynchronousProxy
impl Unpin for DevToolsListenerSynchronousProxy
impl UnwindSafe for DevToolsListenerSynchronousProxy
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