pub struct Server_SynchronousProxy { /* private fields */ }
Implementations§
source§impl Server_SynchronousProxy
impl Server_SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<Server_Event, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<Server_Event, 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 mount_vmo(
&self,
source: Vmo,
flags: OpenFlags,
root: ServerEnd<DirectoryMarker>,
___deadline: Time
) -> Result<MountVmoResult, Error>
pub fn mount_vmo( &self, source: Vmo, flags: OpenFlags, root: ServerEnd<DirectoryMarker>, ___deadline: Time ) -> Result<MountVmoResult, Error>
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 Debug for Server_SynchronousProxy
impl Debug for Server_SynchronousProxy
source§impl SynchronousProxy for Server_SynchronousProxy
impl SynchronousProxy for Server_SynchronousProxy
§type Proxy = Server_Proxy
type Proxy = Server_Proxy
The async proxy for the same protocol.
§type Protocol = Server_Marker
type Protocol = Server_Marker
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 RefUnwindSafe for Server_SynchronousProxy
impl Send for Server_SynchronousProxy
impl Sync for Server_SynchronousProxy
impl Unpin for Server_SynchronousProxy
impl UnwindSafe for Server_SynchronousProxy
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