pub struct VolumeInstallerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl VolumeInstallerSynchronousProxy
impl VolumeInstallerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<VolumeInstallerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<VolumeInstallerEvent, 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 install(
&self,
src: &str,
image_file: &str,
dst: &str,
___deadline: MonotonicInstant,
) -> Result<VolumeInstallerInstallResult, Error>
pub fn install( &self, src: &str, image_file: &str, dst: &str, ___deadline: MonotonicInstant, ) -> Result<VolumeInstallerInstallResult, Error>
Using the partition image in image_file
contained in the volume src
, overwrites the
volume dst
with a volume of the same name from the image. On success, src
will no longer
exist. There must be no objects in src
other than the image that contain extents.
Neither src
nor dst
can be mounted or otherwise in-use.
WARNING: This will delete the existing contents of dst
.
Trait Implementations§
Source§impl From<VolumeInstallerSynchronousProxy> for Handle
impl From<VolumeInstallerSynchronousProxy> for Handle
Source§fn from(value: VolumeInstallerSynchronousProxy) -> Self
fn from(value: VolumeInstallerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for VolumeInstallerSynchronousProxy
impl FromClient for VolumeInstallerSynchronousProxy
Source§type Protocol = VolumeInstallerMarker
type Protocol = VolumeInstallerMarker
The protocol.
Source§fn from_client(value: ClientEnd<VolumeInstallerMarker>) -> Self
fn from_client(value: ClientEnd<VolumeInstallerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for VolumeInstallerSynchronousProxy
impl SynchronousProxy for VolumeInstallerSynchronousProxy
Source§type Proxy = VolumeInstallerProxy
type Proxy = VolumeInstallerProxy
The async proxy for the same protocol.
Source§type Protocol = VolumeInstallerMarker
type Protocol = VolumeInstallerMarker
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 VolumeInstallerSynchronousProxy
impl RefUnwindSafe for VolumeInstallerSynchronousProxy
impl Send for VolumeInstallerSynchronousProxy
impl Sync for VolumeInstallerSynchronousProxy
impl Unpin for VolumeInstallerSynchronousProxy
impl UnwindSafe for VolumeInstallerSynchronousProxy
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