pub struct AdministratorProxy { /* private fields */ }
Implementations§
source§impl AdministratorProxy
impl AdministratorProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.device.manager/Administrator.
sourcepub fn take_event_stream(&self) -> AdministratorEventStream
pub fn take_event_stream(&self) -> AdministratorEventStream
Get a Stream of events from the remote end of the protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn unregister_system_storage_for_shutdown(&self) -> QueryResponseFut<i32>
pub fn unregister_system_storage_for_shutdown(&self) -> QueryResponseFut<i32>
This is a temporary API until DriverManager can ensure that base drivers will be shut down automatically before fshost exits. This will happen once drivers-as-components is implemented. In the meantime, this API should only be called by fshost, and it must be called before fshost exits. This function iterates over the devices and suspends any device whose driver lives in storage. This API must be called by fshost before it shuts down. Otherwise the devices that live in storage may page fault as it access memory that should be provided by the exited fshost. This function will not return until the devices are suspended. If there are no devices that live in storage, this function will immediatetly return.
sourcepub fn suspend_without_exit(&self) -> Result<(), Error>
pub fn suspend_without_exit(&self) -> Result<(), Error>
Tell DriverManager to go through the suspend process, but don’t exit afterwards. This is used in tests to check that suspend works correctly.
Trait Implementations§
source§impl AdministratorProxyInterface for AdministratorProxy
impl AdministratorProxyInterface for AdministratorProxy
type UnregisterSystemStorageForShutdownResponseFut = QueryResponseFut<i32>
fn unregister_system_storage_for_shutdown( &self ) -> Self::UnregisterSystemStorageForShutdownResponseFut
fn suspend_without_exit(&self) -> Result<(), Error>
source§impl Clone for AdministratorProxy
impl Clone for AdministratorProxy
source§fn clone(&self) -> AdministratorProxy
fn clone(&self) -> AdministratorProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdministratorProxy
impl Debug for AdministratorProxy
source§impl Proxy for AdministratorProxy
impl Proxy for AdministratorProxy
§type Protocol = AdministratorMarker
type Protocol = AdministratorMarker
Proxy
controls.