pub struct LoaderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LoaderSynchronousProxy
impl LoaderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LoaderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LoaderEvent, 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 load_object(
&self,
object_name: &str,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Vmo>), Error>
pub fn load_object( &self, object_name: &str, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Vmo>), Error>
The dynamic linker sends object_name
and gets back a VMO
handle containing the file.
Sourcepub fn config(
&self,
config: &str,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn config( &self, config: &str, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
The dynamic linker sends a config
identifying its load
configuration. This is intended to affect how later
LoadObject
requests decide what particular implementation
file to supply for a given name.
Sourcepub fn clone(
&self,
loader: ServerEnd<LoaderMarker>,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn clone( &self, loader: ServerEnd<LoaderMarker>, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Obtain a new loader service connection.
Trait Implementations§
Source§impl Debug for LoaderSynchronousProxy
impl Debug for LoaderSynchronousProxy
Source§impl SynchronousProxy for LoaderSynchronousProxy
impl SynchronousProxy for LoaderSynchronousProxy
Source§type Proxy = LoaderProxy
type Proxy = LoaderProxy
The async proxy for the same protocol.
Source§type Protocol = LoaderMarker
type Protocol = LoaderMarker
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 LoaderSynchronousProxy
impl RefUnwindSafe for LoaderSynchronousProxy
impl Send for LoaderSynchronousProxy
impl Sync for LoaderSynchronousProxy
impl Unpin for LoaderSynchronousProxy
impl UnwindSafe for LoaderSynchronousProxy
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