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: MonotonicTime,
) -> Result<DebugBrokerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicTime, ) -> 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: MonotonicTime,
) -> Result<i32, Error>
pub fn send_debug_command( &self, command: &str, ___deadline: MonotonicTime, ) -> 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: MonotonicTime,
) -> Result<i32, Error>
pub fn set_tracing_enabled( &self, enabled: bool, ___deadline: MonotonicTime, ) -> 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
§type Proxy = DebugBrokerProxy
type Proxy = DebugBrokerProxy
The async proxy for the same protocol.
§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