Struct fidl_fuchsia_storage_ext4::Server_Proxy
source · pub struct Server_Proxy { /* private fields */ }
Implementations§
source§impl Server_Proxy
impl Server_Proxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.storage.ext4/Server.
sourcepub fn take_event_stream(&self) -> Server_EventStream
pub fn take_event_stream(&self) -> Server_EventStream
Get a Stream of events from the remote end of the protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn mount_vmo(
&self,
source: Vmo,
flags: OpenFlags,
root: ServerEnd<DirectoryMarker>
) -> QueryResponseFut<MountVmoResult>
pub fn mount_vmo( &self, source: Vmo, flags: OpenFlags, root: ServerEnd<DirectoryMarker> ) -> QueryResponseFut<MountVmoResult>
Read the VMO content as an Ext4 image and return a channel to the root of the mounted file system.
- request
source
is an Ext4 image to be served over theroot
connection. - request
flags
is the same flags you can pass to [fuchsia.io/Directory.Open
] call. In particular [OPEN_FLAG_DESCRIBE
] can be used to report mount errors. Note that [MountVmoError
] will contain a better description of any error that may occur at the mount time. - request
root
is the server end of a connection that will be serving the root of the mounted image.
- result
result
In case we could parse the image far enough to read the root directory [MountVmoResult.success
] will be returned. Note that you may pipeline requests to theroot
connection even before received a response. In case of an error one of the other values will be returned and theroot
connection will be closed.
Trait Implementations§
source§impl Clone for Server_Proxy
impl Clone for Server_Proxy
source§fn clone(&self) -> Server_Proxy
fn clone(&self) -> Server_Proxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Server_Proxy
impl Debug for Server_Proxy
source§impl Proxy for Server_Proxy
impl Proxy for Server_Proxy
§type Protocol = Server_Marker
type Protocol = Server_Marker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
source§impl Server_ProxyInterface for Server_Proxy
impl Server_ProxyInterface for Server_Proxy
type MountVmoResponseFut = QueryResponseFut<MountVmoResult>
fn mount_vmo( &self, source: Vmo, flags: OpenFlags, root: ServerEnd<DirectoryMarker> ) -> Self::MountVmoResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for Server_Proxy
impl Send for Server_Proxy
impl Sync for Server_Proxy
impl Unpin for Server_Proxy
impl !UnwindSafe for Server_Proxy
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