pub struct CollaborativeRebootInitiatorSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CollaborativeRebootInitiatorSynchronousProxy
impl CollaborativeRebootInitiatorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CollaborativeRebootInitiatorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CollaborativeRebootInitiatorEvent, 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 perform_pending_reboot(
&self,
___deadline: MonotonicInstant,
) -> Result<CollaborativeRebootInitiatorPerformPendingRebootResponse, Error>
pub fn perform_pending_reboot( &self, ___deadline: MonotonicInstant, ) -> Result<CollaborativeRebootInitiatorPerformPendingRebootResponse, Error>
Initiates a collaborative reboot.
Initiates a device reboot if there is one or more pending reboot requests from a collaborative reboot scheduler.
Response:
- rebooting: True if there was a pending reboot request and the device will immediately reboot. False if there were no pending reboot requests and the device will not reboot.
Trait Implementations§
Source§impl SynchronousProxy for CollaborativeRebootInitiatorSynchronousProxy
impl SynchronousProxy for CollaborativeRebootInitiatorSynchronousProxy
Source§type Proxy = CollaborativeRebootInitiatorProxy
type Proxy = CollaborativeRebootInitiatorProxy
The async proxy for the same protocol.
Source§type Protocol = CollaborativeRebootInitiatorMarker
type Protocol = CollaborativeRebootInitiatorMarker
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 CollaborativeRebootInitiatorSynchronousProxy
impl RefUnwindSafe for CollaborativeRebootInitiatorSynchronousProxy
impl Send for CollaborativeRebootInitiatorSynchronousProxy
impl Sync for CollaborativeRebootInitiatorSynchronousProxy
impl Unpin for CollaborativeRebootInitiatorSynchronousProxy
impl UnwindSafe for CollaborativeRebootInitiatorSynchronousProxy
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