Struct fidl_fuchsia_paver::PaverProxy
source · pub struct PaverProxy { /* private fields */ }
Implementations§
source§impl PaverProxy
impl PaverProxy
sourcepub fn take_event_stream(&self) -> PaverEventStream
pub fn take_event_stream(&self) -> PaverEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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>,
block_controller: ClientEnd<ControllerMarker>,
data_sink: ServerEnd<DynamicDataSinkMarker>,
) -> Result<(), Error>
pub fn use_block_device( &self, block_device: ClientEnd<BlockMarker>, block_controller: ClientEnd<ControllerMarker>, 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.
Trait Implementations§
source§impl Clone for PaverProxy
impl Clone for PaverProxy
source§fn clone(&self) -> PaverProxy
fn clone(&self) -> PaverProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PaverProxy
impl Debug for PaverProxy
source§impl PaverProxyInterface for PaverProxy
impl PaverProxyInterface for PaverProxy
fn find_data_sink( &self, data_sink: ServerEnd<DataSinkMarker>, ) -> Result<(), Error>
fn use_block_device( &self, block_device: ClientEnd<BlockMarker>, block_controller: ClientEnd<ControllerMarker>, data_sink: ServerEnd<DynamicDataSinkMarker>, ) -> Result<(), Error>
fn find_boot_manager( &self, boot_manager: ServerEnd<BootManagerMarker>, ) -> Result<(), Error>
fn find_sysconfig( &self, sysconfig: ServerEnd<SysconfigMarker>, ) -> Result<(), Error>
source§impl Proxy for PaverProxy
impl Proxy for PaverProxy
§type Protocol = PaverMarker
type Protocol = PaverMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for PaverProxy
impl !RefUnwindSafe for PaverProxy
impl Send for PaverProxy
impl Sync for PaverProxy
impl Unpin for PaverProxy
impl !UnwindSafe for PaverProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)