pub struct MapperSessionSynchronousProxy { /* private fields */ }Implementations§
Source§impl MapperSessionSynchronousProxy
impl MapperSessionSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MapperSessionEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MapperSessionEvent, 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 close(
&self,
___deadline: MonotonicInstant,
) -> Result<CloseableCloseResult, Error>
pub fn close( &self, ___deadline: MonotonicInstant, ) -> Result<CloseableCloseResult, Error>
Terminates the connection.
After calling Close, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close without knowing when the close has completed or its
status.
Sourcepub fn create_vmo(
&self,
key: u64,
size: u64,
options: CreateVmoOptions,
___deadline: MonotonicInstant,
) -> Result<MapperSessionCreateVmoResult, Error>
pub fn create_vmo( &self, key: u64, size: u64, options: CreateVmoOptions, ___deadline: MonotonicInstant, ) -> Result<MapperSessionCreateVmoResult, Error>
Creates a pager-backed VMO of size bytes associated with key.
Page faults on this VMO are handled directly by the driver mapper.
Sourcepub fn open_child_session(
&self,
session: ServerEnd<MapperSessionMarker>,
mapping_vmo: Vmo,
parent_key: u64,
port: Option<Port>,
delivery_queue: Option<Vmo>,
___deadline: MonotonicInstant,
) -> Result<MapperSessionOpenChildSessionResult, Error>
pub fn open_child_session( &self, session: ServerEnd<MapperSessionMarker>, mapping_vmo: Vmo, parent_key: u64, port: Option<Port>, delivery_queue: Option<Vmo>, ___deadline: MonotonicInstant, ) -> Result<MapperSessionOpenChildSessionResult, Error>
Opens a child mapper session whose reads map through parent_key in the parent session.
When a parent session is closed, all child sessions opened from it are closed as well.
Sourcepub fn record_profile(
&self,
recording: ServerEnd<RecordingMarker>,
___deadline: MonotonicInstant,
) -> Result<MapperSessionRecordProfileResult, Error>
pub fn record_profile( &self, recording: ServerEnd<RecordingMarker>, ___deadline: MonotonicInstant, ) -> Result<MapperSessionRecordProfileResult, Error>
Starts recording an access profile for this mapper session.
Trait Implementations§
Source§impl From<Channel> for MapperSessionSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for MapperSessionSynchronousProxy
Source§impl From<MapperSessionSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<MapperSessionSynchronousProxy> for NullableHandle
Source§fn from(value: MapperSessionSynchronousProxy) -> Self
fn from(value: MapperSessionSynchronousProxy) -> Self
Source§impl FromClient for MapperSessionSynchronousProxy
Available on Fuchsia only.
impl FromClient for MapperSessionSynchronousProxy
Source§type Protocol = MapperSessionMarker
type Protocol = MapperSessionMarker
Source§fn from_client(value: ClientEnd<MapperSessionMarker>) -> Self
fn from_client(value: ClientEnd<MapperSessionMarker>) -> Self
Source§impl SynchronousProxy for MapperSessionSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for MapperSessionSynchronousProxy
Source§type Proxy = MapperSessionProxy
type Proxy = MapperSessionProxy
Source§type Protocol = MapperSessionMarker
type Protocol = MapperSessionMarker
Proxy controls.