pub struct DebugBrokerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DebugBrokerSynchronousProxy
impl DebugBrokerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DebugBrokerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DebugBrokerEvent, 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 send_debug_command(
&self,
command: &str,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn send_debug_command( &self, command: &str, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Pass debug command through to the kernel shell. Look at zx_debug_send_command syscall handling to find valid values.
Sourcepub fn set_tracing_enabled(
&self,
enabled: bool,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn set_tracing_enabled( &self, enabled: bool, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Sets whether kernel tracing (ktrace) is enabled or disabled.
Trait Implementations§
Source§impl Debug for DebugBrokerSynchronousProxy
impl Debug for DebugBrokerSynchronousProxy
Source§impl SynchronousProxy for DebugBrokerSynchronousProxy
impl SynchronousProxy for DebugBrokerSynchronousProxy
Source§type Proxy = DebugBrokerProxy
type Proxy = DebugBrokerProxy
The async proxy for the same protocol.
Source§type Protocol = DebugBrokerMarker
type Protocol = DebugBrokerMarker
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 DebugBrokerSynchronousProxy
impl RefUnwindSafe for DebugBrokerSynchronousProxy
impl Send for DebugBrokerSynchronousProxy
impl Sync for DebugBrokerSynchronousProxy
impl Unpin for DebugBrokerSynchronousProxy
impl UnwindSafe for DebugBrokerSynchronousProxy
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