pub struct ResetSynchronousProxy { /* private fields */ }Implementations§
Source§impl ResetSynchronousProxy
impl ResetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ResetEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ResetEvent, 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 assert(
&self,
___deadline: MonotonicInstant,
) -> Result<ResetAssertResult, Error>
pub fn assert( &self, ___deadline: MonotonicInstant, ) -> Result<ResetAssertResult, Error>
Asserts the reset pin and leaves it asserted until Deassert is called.
Sourcepub fn deassert(
&self,
___deadline: MonotonicInstant,
) -> Result<ResetDeassertResult, Error>
pub fn deassert( &self, ___deadline: MonotonicInstant, ) -> Result<ResetDeassertResult, Error>
Deasserts the reset pin.
Sourcepub fn toggle(
&self,
___deadline: MonotonicInstant,
) -> Result<ResetToggleResult, Error>
pub fn toggle( &self, ___deadline: MonotonicInstant, ) -> Result<ResetToggleResult, Error>
These methods assert the pin, wait a predetermined amount of time, and then deassert the
pin. The difference between Toggle and ToggleWithTimeout is that Toggle defers to the
Reset driver to choose the timeout duration and ToggleWithTimeout allows the client to
specify the timeout.
pub fn toggle_with_timeout( &self, timeout: i64, ___deadline: MonotonicInstant, ) -> Result<ResetToggleWithTimeoutResult, Error>
pub fn status( &self, ___deadline: MonotonicInstant, ) -> Result<ResetStatusResult, Error>
Trait Implementations§
Source§impl Debug for ResetSynchronousProxy
impl Debug for ResetSynchronousProxy
Source§impl From<Channel> for ResetSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ResetSynchronousProxy
Available on Fuchsia only.
Source§impl From<ResetSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<ResetSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: ResetSynchronousProxy) -> Self
fn from(value: ResetSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for ResetSynchronousProxy
Available on Fuchsia only.
impl FromClient for ResetSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = ResetMarker
type Protocol = ResetMarker
The protocol.
Source§fn from_client(value: ClientEnd<ResetMarker>) -> Self
fn from_client(value: ClientEnd<ResetMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for ResetSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ResetSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = ResetProxy
type Proxy = ResetProxy
The async proxy for the same protocol.
Source§type Protocol = ResetMarker
type Protocol = ResetMarker
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 ResetSynchronousProxy
impl RefUnwindSafe for ResetSynchronousProxy
impl Send for ResetSynchronousProxy
impl Sync for ResetSynchronousProxy
impl Unpin for ResetSynchronousProxy
impl UnsafeUnpin for ResetSynchronousProxy
impl UnwindSafe for ResetSynchronousProxy
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