pub struct BlobVolumeWriterSynchronousProxy { /* private fields */ }
Implementations§
Source§impl BlobVolumeWriterSynchronousProxy
impl BlobVolumeWriterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BlobVolumeWriterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BlobVolumeWriterEvent, 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 write(
&self,
payload: Buffer,
___deadline: MonotonicInstant,
) -> Result<BlobVolumeWriterWriteResult, Error>
pub fn write( &self, payload: Buffer, ___deadline: MonotonicInstant, ) -> Result<BlobVolumeWriterWriteResult, Error>
Writes the blob volume from payload
into this partition. payload
must be an fxfs
partition containing a single volume named “blob”. payload
may be truncated to exclude
unused blocks.
WARNING: The system may not boot if this process is interrupted.
Trait Implementations§
Source§impl From<BlobVolumeWriterSynchronousProxy> for Handle
impl From<BlobVolumeWriterSynchronousProxy> for Handle
Source§fn from(value: BlobVolumeWriterSynchronousProxy) -> Self
fn from(value: BlobVolumeWriterSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for BlobVolumeWriterSynchronousProxy
impl FromClient for BlobVolumeWriterSynchronousProxy
Source§type Protocol = BlobVolumeWriterMarker
type Protocol = BlobVolumeWriterMarker
The protocol.
Source§fn from_client(value: ClientEnd<BlobVolumeWriterMarker>) -> Self
fn from_client(value: ClientEnd<BlobVolumeWriterMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for BlobVolumeWriterSynchronousProxy
impl SynchronousProxy for BlobVolumeWriterSynchronousProxy
Source§type Proxy = BlobVolumeWriterProxy
type Proxy = BlobVolumeWriterProxy
The async proxy for the same protocol.
Source§type Protocol = BlobVolumeWriterMarker
type Protocol = BlobVolumeWriterMarker
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 BlobVolumeWriterSynchronousProxy
impl RefUnwindSafe for BlobVolumeWriterSynchronousProxy
impl Send for BlobVolumeWriterSynchronousProxy
impl Sync for BlobVolumeWriterSynchronousProxy
impl Unpin for BlobVolumeWriterSynchronousProxy
impl UnwindSafe for BlobVolumeWriterSynchronousProxy
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