pub struct CollaborativeRebootSchedulerProxy { /* private fields */ }
Implementations§
Source§impl CollaborativeRebootSchedulerProxy
impl CollaborativeRebootSchedulerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.power.internal/CollaborativeRebootScheduler.
Sourcepub fn take_event_stream(&self) -> CollaborativeRebootSchedulerEventStream
pub fn take_event_stream(&self) -> CollaborativeRebootSchedulerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn schedule_reboot(
&self,
reason: CollaborativeRebootReason,
cancel: Option<EventPair>,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn schedule_reboot( &self, reason: CollaborativeRebootReason, cancel: Option<EventPair>, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Schedules a collaborative reboot.
Notifies the server of a new reason to perform collaborative reboot. This method may be called multiple times, by multiple actors for a single collaborative reboot.
The server will not respond to the method until the request has been scheduled.
Arguments:
- reason: The reason for requesting the collaborative reboot.
- cancel: An optional Zircon Eventpair. If provided, the caller may
cancel their request by signaling the event’s peer. A
canceled request will not cause a future call to
[
CollaborativeRebootInitiator.PerformPendingReboot
] to initiate a reboot. AnyZX_USER_SIGNAL_*
can be used to cancel the request. If the server observesZX_OBJECT_PEER_CLOSED
(i.e. because the client dropped the event pair), it will be interpretted as a cancellation.
Trait Implementations§
Source§impl Clone for CollaborativeRebootSchedulerProxy
impl Clone for CollaborativeRebootSchedulerProxy
Source§fn clone(&self) -> CollaborativeRebootSchedulerProxy
fn clone(&self) -> CollaborativeRebootSchedulerProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CollaborativeRebootSchedulerProxyInterface for CollaborativeRebootSchedulerProxy
impl CollaborativeRebootSchedulerProxyInterface for CollaborativeRebootSchedulerProxy
type ScheduleRebootResponseFut = QueryResponseFut<()>
fn schedule_reboot( &self, reason: CollaborativeRebootReason, cancel: Option<EventPair>, ) -> Self::ScheduleRebootResponseFut
Source§impl Proxy for CollaborativeRebootSchedulerProxy
impl Proxy for CollaborativeRebootSchedulerProxy
Source§type Protocol = CollaborativeRebootSchedulerMarker
type Protocol = CollaborativeRebootSchedulerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for CollaborativeRebootSchedulerProxy
impl !RefUnwindSafe for CollaborativeRebootSchedulerProxy
impl Send for CollaborativeRebootSchedulerProxy
impl Sync for CollaborativeRebootSchedulerProxy
impl Unpin for CollaborativeRebootSchedulerProxy
impl !UnwindSafe for CollaborativeRebootSchedulerProxy
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