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 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.
Trait Implementations§
Source§impl From<Channel> for MapperSessionSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for MapperSessionSynchronousProxy
Available on Fuchsia only.
Source§impl From<MapperSessionSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<MapperSessionSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: MapperSessionSynchronousProxy) -> Self
fn from(value: MapperSessionSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for MapperSessionSynchronousProxy
Available on Fuchsia only.
impl FromClient for MapperSessionSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = MapperSessionMarker
type Protocol = MapperSessionMarker
The protocol.
Source§fn from_client(value: ClientEnd<MapperSessionMarker>) -> Self
fn from_client(value: ClientEnd<MapperSessionMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for MapperSessionSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for MapperSessionSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = MapperSessionProxy
type Proxy = MapperSessionProxy
The async proxy for the same protocol.
Source§type Protocol = MapperSessionMarker
type Protocol = MapperSessionMarker
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 MapperSessionSynchronousProxy
impl RefUnwindSafe for MapperSessionSynchronousProxy
impl Send for MapperSessionSynchronousProxy
impl Sync for MapperSessionSynchronousProxy
impl Unpin for MapperSessionSynchronousProxy
impl UnsafeUnpin for MapperSessionSynchronousProxy
impl UnwindSafe for MapperSessionSynchronousProxy
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