pub struct PaverSynchronousProxy { /* private fields */ }
Implementations§
source§impl PaverSynchronousProxy
impl PaverSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<PaverEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<PaverEvent, 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 find_data_sink(
&self,
data_sink: ServerEnd<DataSinkMarker>
) -> Result<(), Error>
pub fn find_data_sink( &self, data_sink: ServerEnd<DataSinkMarker> ) -> Result<(), Error>
Attempts to auto-discover the data sink where assets and volumes will get paved to. On devices with GPT, the partition must have a valid FVM partition in order for auto-discovery to find it. If multiple devices are found suitable, error is returned.
data_sink
will be closed on error, with an epitaph provided on failure reason.
sourcepub fn use_block_device(
&self,
block_device: ClientEnd<BlockMarker>,
data_sink: ServerEnd<DynamicDataSinkMarker>
) -> Result<(), Error>
pub fn use_block_device( &self, block_device: ClientEnd<BlockMarker>, data_sink: ServerEnd<DynamicDataSinkMarker> ) -> Result<(), Error>
Provide a block device to use as a data sink. Assets and volumes will be paved to partitions within this block device.
It assumes that channel backing block_device
also implements fuchsia.io.Node
for now.
data_sink
will be closed on error, with an epitaph provided on failure reason.
sourcepub fn find_boot_manager(
&self,
boot_manager: ServerEnd<BootManagerMarker>
) -> Result<(), Error>
pub fn find_boot_manager( &self, boot_manager: ServerEnd<BootManagerMarker> ) -> Result<(), Error>
Attempts to auto-discover the boot manager.
boot_manager
will be closed on error, with an epitaph provided on failure reason.
ZX_ERR_NOT_SUPPORTED indicates lack of support and configuration A is always booted from.
sourcepub fn find_sysconfig(
&self,
sysconfig: ServerEnd<SysconfigMarker>
) -> Result<(), Error>
pub fn find_sysconfig( &self, sysconfig: ServerEnd<SysconfigMarker> ) -> Result<(), Error>
Find Sysconfig service.