pub struct SessionSynchronousProxy { /* private fields */ }Implementations§
Source§impl SessionSynchronousProxy
impl SessionSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SessionEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SessionEvent, 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 get_fifo(
&self,
___deadline: MonotonicInstant,
) -> Result<SessionGetFifoResult, Error>
pub fn get_fifo( &self, ___deadline: MonotonicInstant, ) -> Result<SessionGetFifoResult, Error>
Returns a handle to the client end of the FIFO.
Sourcepub fn attach_vmo(
&self,
vmo: Vmo,
___deadline: MonotonicInstant,
) -> Result<SessionAttachVmoResult, Error>
pub fn attach_vmo( &self, vmo: Vmo, ___deadline: MonotonicInstant, ) -> Result<SessionAttachVmoResult, Error>
Attaches a VMO to the session. Resizable VMOs are not supported and will return
ZX_ERR_INVALID_ARGS.
Returns an identifier that can be used to refer to the VMO.
Sourcepub fn register_key(
&self,
key_token: EventPair,
___deadline: MonotonicInstant,
) -> Result<SessionRegisterKeyResult, Error>
pub fn register_key( &self, key_token: EventPair, ___deadline: MonotonicInstant, ) -> Result<SessionRegisterKeyResult, Error>
Registers an inline encryption key handle (key_token returned by
fuchsia.hardware.inlineencryption/Device.ProgramKey) with this session.
Returns a session-scoped slot token that can be passed in
BlockFifoRequest.slot when BlockIoFlag.INLINE_ENCRYPTION_ENABLED is set.
- error
ZX_ERR_ACCESS_DENIEDifkey_tokenis not a valid inline encryption key token for this block device, or if the key has been evicted. - error
ZX_ERR_NOT_SUPPORTEDif the device does not support inline encryption.
Trait Implementations§
Source§impl Debug for SessionSynchronousProxy
impl Debug for SessionSynchronousProxy
Source§impl From<Channel> for SessionSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for SessionSynchronousProxy
Source§impl From<SessionSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<SessionSynchronousProxy> for NullableHandle
Source§fn from(value: SessionSynchronousProxy) -> Self
fn from(value: SessionSynchronousProxy) -> Self
Source§impl FromClient for SessionSynchronousProxy
Available on Fuchsia only.
impl FromClient for SessionSynchronousProxy
Source§type Protocol = SessionMarker
type Protocol = SessionMarker
Source§fn from_client(value: ClientEnd<SessionMarker>) -> Self
fn from_client(value: ClientEnd<SessionMarker>) -> Self
Source§impl SynchronousProxy for SessionSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for SessionSynchronousProxy
Source§type Proxy = SessionProxy
type Proxy = SessionProxy
Source§type Protocol = SessionMarker
type Protocol = SessionMarker
Proxy controls.